>>> art_standalone: Building testing/art_standalone 0_git20240220-r1 (using abuild 3.12.0-r5) started Mon, 01 Apr 2024 23:27:03 +0000 >>> art_standalone: Checking sanity of /home/buildozer/aports/testing/art_standalone/APKBUILD... >>> art_standalone: Analyzing dependencies... >>> art_standalone: Installing for build: build-base wolfssl-jni bash vixl-dev bionic_translation-dev bsd-compat-headers expat-dev icu-dev java-common libbsd-dev libcap-dev libunwind-dev lz4-dev meson openjdk8-jdk openssl-dev python3 valgrind-dev wolfssl-jni-dev xz-dev zip zlib-dev (1/97) Installing wolfssl-jni (5.7.0-r0) (2/97) Installing readline (8.2.10-r0) (3/97) Installing bash (5.2.26-r0) Executing bash-5.2.26-r0.post-install (4/97) Installing vixl (7.0.0-r0) (5/97) Installing vixl-dev (7.0.0-r0) (6/97) Installing mesa (24.0.3-r0) (7/97) Installing libxau (1.0.11-r3) (8/97) Installing libmd (1.1.0-r0) (9/97) Installing libbsd (0.12.2-r0) (10/97) Installing libxdmcp (1.1.5-r0) (11/97) Installing libxcb (1.16.1-r0) (12/97) Installing libx11 (1.8.7-r0) (13/97) Installing hwdata-pci (0.380-r0) (14/97) Installing libpciaccess (0.18.1-r0) (15/97) Installing libdrm (2.4.120-r0) (16/97) Installing libffi (3.4.6-r0) (17/97) Installing wayland-libs-server (1.22.0-r4) (18/97) Installing mesa-gbm (24.0.3-r0) (19/97) Installing mesa-glapi (24.0.3-r0) (20/97) Installing wayland-libs-client (1.22.0-r4) (21/97) Installing libxshmfence (1.3.2-r5) (22/97) Installing mesa-egl (24.0.3-r0) (23/97) Installing libucontext (1.2-r3) (24/97) Installing xz-libs (5.6.1-r2) (25/97) Installing libunwind (1.8.1-r0) (26/97) Installing bionic_translation (0_git20240202-r0) (27/97) Installing bionic_translation-dev (0_git20240202-r0) (28/97) Installing bsd-compat-headers (0.7.2-r6) (29/97) Installing expat (2.6.2-r0) (30/97) Installing expat-dev (2.6.2-r0) (31/97) Installing icu-data-en (74.2-r0) Executing icu-data-en-74.2-r0.post-install * * If you need ICU with non-English locales and legacy charset support, install * package icu-data-full. * (32/97) Installing icu-libs (74.2-r0) (33/97) Installing icu (74.2-r0) (34/97) Installing icu-dev (74.2-r0) (35/97) Installing java-common (0.5-r0) (36/97) Installing linux-headers (6.6-r0) (37/97) Installing libmd-dev (1.1.0-r0) (38/97) Installing libbsd-dev (0.12.2-r0) (39/97) Installing libcap-dev (2.69-r1) (40/97) Installing libucontext-dev (1.2-r3) (41/97) Installing libunwind-dev (1.8.1-r0) (42/97) Installing lz4-dev (1.9.4-r5) (43/97) Installing samurai (1.2-r5) (44/97) Installing libbz2 (1.0.8-r6) (45/97) Installing gdbm (1.23-r1) (46/97) Installing mpdecimal (4.0.0-r0) (47/97) Installing libpanelw (6.4_p20240309-r0) (48/97) Installing sqlite-libs (3.45.2-r0) (49/97) Installing python3 (3.11.8-r0) (50/97) Installing python3-pycache-pyc0 (3.11.8-r0) (51/97) Installing pyc (3.11.8-r0) (52/97) Installing meson-pyc (1.4.0-r0) (53/97) Installing python3-pyc (3.11.8-r0) (54/97) Installing meson (1.4.0-r0) (55/97) Installing libpng (1.6.43-r0) (56/97) Installing freetype (2.13.2-r0) (57/97) Installing fontconfig (2.15.0-r0) (58/97) Installing encodings (1.0.7-r1) (59/97) Installing libfontenc (1.1.7-r4) (60/97) Installing mkfontscale (1.2.2-r5) (61/97) Installing font-dejavu (2.37-r5) (62/97) Installing libxcomposite (0.4.6-r4) (63/97) Installing libxext (1.3.6-r1) (64/97) Installing libxi (1.8.1-r3) (65/97) Installing libxrender (0.9.11-r4) (66/97) Installing libxtst (1.2.4-r5) (67/97) Installing alsa-lib (1.2.11-r0) (68/97) Installing giflib (5.2.2-r0) (69/97) Installing libjpeg-turbo (3.0.2-r0) (70/97) Installing openjdk8-jre-lib (8.402.06-r0) (71/97) Installing libtasn1 (4.19.0-r2) (72/97) Installing p11-kit (0.25.3-r0) (73/97) Installing p11-kit-trust (0.25.3-r0) (74/97) Installing java-cacerts (1.0-r1) (75/97) Installing nspr (4.35-r4) (76/97) Installing nss (3.99-r0) (77/97) Installing krb5-conf (1.0-r2) (78/97) Installing libcom_err (1.47.0-r5) (79/97) Installing keyutils-libs (1.6.3-r3) (80/97) Installing libverto (0.3.2-r2) (81/97) Installing krb5-libs (1.21.2-r0) (82/97) Installing lcms2 (2.16-r0) (83/97) Installing pcsc-lite-libs (2.0.1-r0) (84/97) Installing liblksctp (1.0.19-r5) (85/97) Installing openjdk8-jre-base (8.402.06-r0) (86/97) Installing openjdk8-jre (8.402.06-r0) (87/97) Installing openjdk8-jdk (8.402.06-r0) (88/97) Installing openssl-dev (3.2.1-r1) (89/97) Installing valgrind-dev (3.22.0-r1) (90/97) Installing wolfssl-jni-dev (5.7.0-r0) (91/97) Installing libintl (0.22.5-r0) (92/97) Installing xz (5.6.1-r2) (93/97) Installing xz-dev (5.6.1-r2) (94/97) Installing unzip (6.0-r14) (95/97) Installing zip (3.0-r12) (96/97) Installing zlib-dev (1.3.1-r0) (97/97) Installing .makedepends-art_standalone (20240401.232704) Executing busybox-1.36.1-r24.trigger Executing java-common-0.5-r0.trigger Executing fontconfig-2.15.0-r0.trigger Executing mkfontscale-1.2.2-r5.trigger Executing ca-certificates-20240226-r0.trigger OK: 478 MiB in 200 packages >>> art_standalone: Cleaning up srcdir >>> art_standalone: Cleaning up pkgdir >>> art_standalone: Cleaning up tmpdir >>> art_standalone: Fetching https://distfiles.alpinelinux.org/distfiles/edge/art_standalone-672e299f85cf91901ba107d90084fd67865f047a.tar.gz Connecting to distfiles.alpinelinux.org (172.105.82.32:443) saving to '/var/cache/distfiles/art_standalone-672e299f85cf91901ba107d90084fd67865f047a.tar.gz.part' art_standalone-672e2 15% |**** | 8319k 0:00:05 ETA art_standalone-672e2 100% |********************************| 53.1M 0:00:00 ETA '/var/cache/distfiles/art_standalone-672e299f85cf91901ba107d90084fd67865f047a.tar.gz.part' saved >>> art_standalone: Fetching https://distfiles.alpinelinux.org/distfiles/edge/art_standalone-672e299f85cf91901ba107d90084fd67865f047a.tar.gz >>> art_standalone: Checking sha512sums... art_standalone-672e299f85cf91901ba107d90084fd67865f047a.tar.gz: OK >>> art_standalone: Unpacking /var/cache/distfiles/art_standalone-672e299f85cf91901ba107d90084fd67865f047a.tar.gz... ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=6.0.1 TARGET_PRODUCT=full TARGET_BUILD_VARIANT=eng TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= TARGET_ARCH=arm TARGET_ARCH_VARIANT=armv7 TARGET_CPU_VARIANT=generic TARGET_2ND_ARCH= TARGET_2ND_ARCH_VARIANT= TARGET_2ND_CPU_VARIANT= HOST_ARCH=arm HOST_OS=linux HOST_OS_EXTRA=Linux-6.1.34-1-lts-armv8l-with HOST_BUILD_TYPE=release BUILD_ID=MOB30M OUT_DIR=out ============================================ Checking build tools versions... including ./art/adbconnection/Android.mk ... including ./art/benchmark/Android.mk ... including ./art/build/Android.mk ... including ./art/cmdline/Android.mk ... including ./art/compiler/Android.mk ... including ./art/dalvikvm/Android.mk ... including ./art/dex2oat/Android.mk ... including ./art/dexdump/Android.mk ... including ./art/dexlayout/Android.mk ... including ./art/dexlist/Android.mk ... including ./art/dexoptanalyzer/Android.mk ... including ./art/disassembler/Android.mk ... including ./art/dt_fd_forward/Android.mk ... including ./art/imgdiag/Android.mk ... including ./art/libartbase/Android.mk ... including ./art/libartpalette/Android.mk ... including ./art/libdexfile/Android.mk ... including ./art/libelffile/Android.mk ... including ./art/libprofile/Android.mk ... including ./art/oatdump/Android.mk ... including ./art/openjdkjvm/Android.mk ... including ./art/openjdkjvmti/Android.mk ... including ./art/profman/Android.mk ... including ./art/runtime/Android.mk ... including ./art/sigchainlib/Android.mk ... including ./art/simulator/Android.mk ... including ./art/tools/Android.mk ... including ./build/libs/host/Android.mk ... including ./build/target/board/Android.mk ... including ./build/target/product/security/Android.mk ... including ./build/tools/Android.mk ... including ./dalvik/Android.mk ... including ./external/apache-http/Android.mk ... including ./external/apache-xml/Android.mk ... including ./external/bouncycastle/Android.mk ... including ./external/fdlibm/Android.mk ... including ./external/hamcrest/Android.mk ... including ./external/icu/Android.mk ... including ./external/junit/Android.mk ... including ./external/libunwind/Android.mk ... including ./external/okhttp/Android.mk ... including ./external/safe-iop/Android.mk ... including ./external/wolfssljni/Android.mk ... including ./libandroidfw/Android.mk ... including ./libbase/Android.mk ... including ./libcore/Android.mk ... find: external/doclava/res/assets/templates-sdk: No such file or directory including ./libnativehelper/Android.mk ... including ./prebuilts/misc/common/jarjar/Android.mk ... including ./system/core/Android.mk ... Export includes file: libnativehelper/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libnativehelper_intermediates/export_includes Export includes file: art/sigchainlib/Android.mk -- out/host/linux-x86/obj/STATIC_LIBRARIES/libsigchain_intermediates/export_includes Export includes file: system/core/liblog/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/liblog_intermediates/export_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/liblog_intermediates/import_includes Import includes file: out/host/linux-x86/obj/STATIC_LIBRARIES/libsigchain_intermediates/import_includes Export includes file: art/dalvikvm/Android.mk -- out/host/linux-x86/obj/EXECUTABLES/dalvikvm_intermediates/export_includes Export includes file: build/libs/host/Android.mk -- out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/export_includes Import includes file: out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/import_includes Export includes file: build/tools/acp/Android.mk -- out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/export_includes Notice file: libnativehelper/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libnativehelper.so.txt Notice file: system/core/liblog/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/liblog.so.txt Export includes file: art/libprofile/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libprofile_intermediates/export_includes Export includes file: art/compiler/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/export_includes Export includes file: art/dexlayout/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libart-dexlayout_intermediates/export_includes Export includes file: art/runtime/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/export_includes Export includes file: art/libdexfile/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/export_includes Export includes file: art/libartbase/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/export_includes Export includes file: art/libartpalette/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libartpalette_intermediates/export_includes Export includes file: libbase/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libbase_intermediates/export_includes Export includes file: art/sigchainlib/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libsigchain_intermediates/export_includes Export includes file: art/dex2oat/Android.mk -- out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/export_includes Export includes file: system/core/libziparchive/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libziparchive_intermediates/export_includes Export includes file: system/core/libcutils/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libcutils_intermediates/export_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libcutils_intermediates/import_includes Export includes file: system/core/libutils/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libutils_intermediates/export_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libutils_intermediates/import_includes target Generated: libartbase <= art/libartbase/arch/instruction_set.h target Generated: libartbase <= art/libartbase/base/allocator.h target Generated: libartbase <= art/libartbase/base/unix_file/fd_file.h Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/import_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libartpalette_intermediates/import_includes target Generated: libdexfile <= art/libdexfile/dex/dex_file.h target Generated: libdexfile <= art/libdexfile/dex/dex_file_layout.h target Generated: libdexfile <= art/libdexfile/dex/dex_instruction.h target Generated: libdexfile <= art/libdexfile/dex/dex_instruction_utils.h target Generated: libdexfile <= art/libdexfile/dex/invoke_type.h target Generated: libdexfile <= art/libdexfile/dex/method_reference.h Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/import_includes target Generated: libart-compiler <= art/tools/cpp-define-generator/asm_defines.cc target Generated: libart-compiler <= art/compiler/driver/compiler_options.h target Generated: libart-compiler <= art/compiler/linker/linker_patch.h target Generated: libart-compiler <= art/compiler/optimizing/locations.h target Generated: libart-compiler <= art/compiler/optimizing/optimizing_compiler_stats.h target Generated: libart-compiler <= art/compiler/utils/arm/constants_arm.h target Generated: libart-compiler <= art/compiler/utils/mips/assembler_mips.h target Generated: libart-compiler <= art/compiler/utils/mips64/assembler_mips64.h Export includes file: art/libelffile/Android.mk -- out/host/linux-x86/obj/STATIC_LIBRARIES/libelffile_intermediates/export_includes target Generated: libart <= art/tools/cpp-define-generator/asm_defines.cc target Generated: libart <= target Generated: libart <= art/runtime/base/callee_save_type.h target Generated: libart <= art/runtime/base/locks.h target Generated: libart <= art/runtime/class_loader_context.h target Generated: libart <= art/runtime/class_status.h target Generated: libart <= art/runtime/debugger.h target Generated: libart <= art/runtime/gc_root.h target Generated: libart <= art/runtime/gc/allocator_type.h target Generated: libart <= art/runtime/gc/allocator/rosalloc.h target Generated: libart <= art/runtime/gc/collector_type.h target Generated: libart <= art/runtime/gc/collector/gc_type.h target Generated: libart <= art/runtime/gc/heap.h target Generated: libart <= art/runtime/gc/space/region_space.h target Generated: libart <= art/runtime/gc/space/space.h target Generated: libart <= art/runtime/gc/weak_root_state.h target Generated: libart <= art/runtime/image.h target Generated: libart <= art/runtime/instrumentation.h target Generated: libart <= art/runtime/indirect_reference_table.h target Generated: libart <= art/runtime/jdwp_provider.h target Generated: libart <= art/runtime/jdwp/jdwp.h target Generated: libart <= art/runtime/jdwp/jdwp_constants.h target Generated: libart <= art/runtime/lock_word.h target Generated: libart <= art/runtime/oat.h target Generated: libart <= art/runtime/object_callbacks.h target Generated: libart <= art/runtime/process_state.h target Generated: libart <= art/runtime/stack.h target Generated: libart <= art/runtime/suspend_reason.h target Generated: libart <= art/runtime/thread.h target Generated: libart <= art/runtime/thread_state.h target Generated: libart <= art/runtime/ti/agent.h target Generated: libart <= art/runtime/trace.h target Generated: libart <= art/runtime/verifier/verifier_enums.h Export includes file: system/core/libnativebridge/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libnativebridge_intermediates/export_includes Export includes file: system/core/libbacktrace/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libbacktrace_intermediates/export_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libnativebridge_intermediates/import_includes Export includes file: external/libunwind/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libunwind_intermediates/export_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libunwind_intermediates/import_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libsigchain_intermediates/import_includes Import includes file: out/host/linux-x86/obj/STATIC_LIBRARIES/libelffile_intermediates/import_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libart-dexlayout_intermediates/import_includes target Generated: libart-dex2oat <= art/tools/cpp-define-generator/asm_defines.cc target Generated: libart-dex2oat <= art/dex2oat/dex/dex_to_dex_compiler.h target Generated: libart-dex2oat <= art/dex2oat/driver/compiler_driver.h target Generated: libart-dex2oat <= art/dex2oat/linker/image_writer.h Import includes file: out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/import_includes Export includes file: art/dex2oat/Android.mk -- out/host/linux-x86/obj/EXECUTABLES/dex2oat_intermediates/export_includes Notice file: system/core/libcutils/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libcutils.so.txt Notice file: system/core/libutils/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libutils.so.txt Notice file: external/libunwind/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libunwind.so.txt Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libjavacore_intermediates/import_includes Export includes file: libcore/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libjavacore_intermediates/export_includes Notice file: libcore/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libjavacore.so.txt Export includes file: art/openjdkjvm/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libopenjdkjvm_intermediates/export_includes Export includes file: external/fdlibm/Android.mk -- out/host/linux-x86/obj/STATIC_LIBRARIES/libfdlibm_intermediates/export_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libopenjdkjvm_intermediates/import_includes Import includes file: out/host/linux-x86/obj/STATIC_LIBRARIES/libfdlibm_intermediates/import_includes Export includes file: libcore/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libopenjdk_intermediates/export_includes Notice file: libcore/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libopenjdk.so.txt Notice file: external/fdlibm/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libfdlibm.a.txt Notice file: art/openjdkjvm/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libopenjdkjvm.so.txt Import includes file: out/host/linux-x86/obj/STATIC_LIBRARIES/libopenjdkjvm_intermediates/import_includes Export includes file: art/openjdkjvm/Android.mk -- out/host/linux-x86/obj/STATIC_LIBRARIES/libopenjdkjvm_intermediates/export_includes In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc/accounting/card_table.h:22, from art/tools/cpp-define-generator/globals.def:23, from art/tools/cpp-define-generator/asm_defines.def:21, from art/tools/cpp-define-generator/asm_defines.cc:36: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc/accounting/card_table.h:22, from art/tools/cpp-define-generator/globals.def:23, from art/tools/cpp-define-generator/asm_defines.def:21, from art/tools/cpp-define-generator/asm_defines.cc:36: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/tools/cpp-define-generator/globals.def:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host Java: core-all-hostdex (out/host/common/obj/JAVA_LIBRARIES/core-all-hostdex_intermediates/classes) In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/tools/cpp-define-generator/globals.def:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc/accounting/card_table.h:22, from art/tools/cpp-define-generator/globals.def:23, from art/tools/cpp-define-generator/asm_defines.def:21, from art/tools/cpp-define-generator/asm_defines.cc:36: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host Java: dx (out/host/common/obj/JAVA_LIBRARIES/dx_intermediates/classes) Notice file: dalvik/dx/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/dx.txt Notice file: libcore/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//framework/core-libart-hostdex.jar.txt Notice file: libcore/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//framework/core-oj-hostdex.jar.txt Notice file: external/apache-http/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//framework/apachehttp-hostdex.jar.txt Notice file: external/apache-xml/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//framework/apache-xml-hostdex.jar.txt Notice file: external/hamcrest/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//framework/hamcrest-hostdex.jar.txt Notice file: external/junit/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//framework/core-junit-hostdex.jar.txt In file included from art/runtime/jit/jit.h:20, from art/tools/cpp-define-generator/globals.def:26: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | Notice file: external/bouncycastle/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//framework/bouncycastle-hostdex.jar.txt In file included from art/runtime/jit/jit.h:20, from art/tools/cpp-define-generator/globals.def:26: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libwolfssljni_intermediates/import_includes Export includes file: external/wolfssljni/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libwolfssljni_intermediates/export_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libandroidfw_intermediates/import_includes Export includes file: libandroidfw/Android.mk -- out/host/linux-x86/obj/SHARED_LIBRARIES/libandroidfw_intermediates/export_includes Notice file: libandroidfw/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libandroidfw.so.txt Import includes file: out/host/linux-x86/obj/EXECUTABLES/dalvikvm_intermediates/import_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libnativehelper_intermediates/import_includes host C: liblog <= system/core/liblog/logd_write.c In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/tools/cpp-define-generator/globals.def:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C: liblog <= system/core/liblog/logprint.c host C: liblog <= system/core/liblog/event_tag_map.c host C: liblog <= system/core/liblog/fake_log_device.c Import includes file: out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes In file included from art/runtime/gc/allocator/rosalloc.h:36, from art/tools/cpp-define-generator/rosalloc.def:18, from art/tools/cpp-define-generator/asm_defines.def:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C++: libsigchain <= art/sigchainlib/sigchain.cc host C: libhost <= build/libs/host/CopyFile.c In file included from art/runtime/gc/allocator/rosalloc.h:36, from art/tools/cpp-define-generator/rosalloc.def:18, from art/tools/cpp-define-generator/asm_defines.def:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ Import includes file: out/host/linux-x86/obj/EXECUTABLES/dex2oat_intermediates/import_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libprofile_intermediates/import_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libbase_intermediates/import_includes host C: libcutils <= system/core/libcutils/atomic.c In file included from art/runtime/jit/jit.h:20, from art/tools/cpp-define-generator/globals.def:26: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | system/core/liblog/logd_write.c: In function '__write_to_log_kernel': system/core/liblog/logd_write.c:39:44: warning: implicit declaration of function 'fakeLogWritev' [-Wimplicit-function-declaration] 39 | #define log_writev(filedes, vector, count) fakeLogWritev(filedes, vector, count) | ^~~~~~~~~~~~~ system/core/liblog/logd_write.c:92:15: note: in expansion of macro 'log_writev' 92 | ret = log_writev(log_fd, vec, nr); | ^~~~~~~~~~ system/core/liblog/logd_write.c: In function '__write_to_log_init': system/core/liblog/logd_write.c:38:35: warning: implicit declaration of function 'fakeLogOpen' [-Wimplicit-function-declaration] 38 | #define log_open(pathname, flags) fakeLogOpen(pathname, flags) | ^~~~~~~~~~~ system/core/liblog/logd_write.c:105:32: note: in expansion of macro 'log_open' 105 | log_fds[LOG_ID_MAIN] = log_open("/dev/"LOGGER_LOG_MAIN, O_WRONLY); | ^~~~~~~~ host C: libcutils <= system/core/libcutils/hashmap.c system/core/liblog/logd_write.c:40:28: warning: implicit declaration of function 'fakeLogClose' [-Wimplicit-function-declaration] 40 | #define log_close(filedes) fakeLogClose(filedes) | ^~~~~~~~~~~~ system/core/liblog/logd_write.c:114:13: note: in expansion of macro 'log_close' 114 | log_close(log_fds[LOG_ID_MAIN]); | ^~~~~~~~~ host C: libcutils <= system/core/libcutils/native_handle.c host C: libcutils <= system/core/libcutils/config_utils.c host C: libcutils <= system/core/libcutils/load_file.c system/core/liblog/fake_log_device.c: In function 'fake_writev': system/core/liblog/fake_log_device.c:324:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 324 | struct iovec* end = iov + iovcnt; | ^~~ system/core/liblog/fake_log_device.c:327:15: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare] 327 | if (w != iov->iov_len) { | ^~ host C: libcutils <= system/core/libcutils/strlcpy.c host C: libcutils <= system/core/libcutils/open_memstream.c host C: libcutils <= system/core/libcutils/strdup16to8.c host C: libcutils <= system/core/libcutils/strdup8to16.c host C: libcutils <= system/core/libcutils/record_stream.c host C: libcutils <= system/core/libcutils/process_name.c host C: libcutils <= system/core/libcutils/threads.c host C: libcutils <= system/core/libcutils/sched_policy.c host C: libcutils <= system/core/libcutils/iosched_policy.c In file included from art/runtime/gc/allocator/rosalloc.h:36, from art/tools/cpp-define-generator/rosalloc.def:18, from art/tools/cpp-define-generator/asm_defines.def:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C: libcutils <= system/core/libcutils/str_parms.c host C: libcutils <= system/core/libcutils/fs_config.c host C: libcutils <= system/core/libcutils/fs.c host C: libcutils <= system/core/libcutils/multiuser.c host C: libcutils <= system/core/libcutils/socket_inaddr_any_server.c host C: libcutils <= system/core/libcutils/socket_local_client.c host C: libcutils <= system/core/libcutils/socket_local_server.c host C: libcutils <= system/core/libcutils/socket_loopback_client.c In file included from system/core/include/cutils/str_parms.h:21, from system/core/libcutils/str_parms.c:29: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ host C: libcutils <= system/core/libcutils/socket_loopback_server.c host C: libcutils <= system/core/libcutils/socket_network_client.c host C: libcutils <= system/core/libcutils/sockets.c system/core/libcutils/fs_config.c:134:50: warning: left shift count >= width of type [-Wshift-count-overflow] 134 | { 00700, AID_SYSTEM, AID_SHELL, (1ULL << CAP_BLOCK_SUSPEND), "system/bin/inputflinger" }, | ^~ host C: libcutils <= system/core/libcutils/ashmem-host.c host C: libcutils <= system/core/libcutils/trace-host.c host C: libcutils <= system/core/libcutils/dlmalloc_stubs.c Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libziparchive_intermediates/import_includes host C++: libutils <= system/core/libutils/BasicHashtable.cpp host C++: libutils <= system/core/libutils/CallStack.cpp host C++: libutils <= system/core/libutils/FileMap.cpp In file included from system/core/include/cutils/trace.h:100, from system/core/libcutils/trace-host.c:17: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ host C++: libutils <= system/core/libutils/JenkinsHash.cpp host C++: libutils <= system/core/libutils/LinearTransform.cpp host C++: libutils <= system/core/libutils/Log.cpp host C++: libutils <= system/core/libutils/NativeHandle.cpp host C++: libutils <= system/core/libutils/Printer.cpp host C++: libutils <= system/core/libutils/ProcessCallStack.cpp host C++: libutils <= system/core/libutils/PropertyMap.cpp host C++: libutils <= system/core/libutils/RefBase.cpp host C++: libutils <= system/core/libutils/SharedBuffer.cpp host C++: libutils <= system/core/libutils/Static.cpp host C++: libutils <= system/core/libutils/StopWatch.cpp host C++: libutils <= system/core/libutils/String8.cpp host C++: libutils <= system/core/libutils/String16.cpp host C++: libutils <= system/core/libutils/SystemClock.cpp host C++: libutils <= system/core/libutils/Threads.cpp host C++: libutils <= system/core/libutils/Timers.cpp host C++: libutils <= system/core/libutils/Tokenizer.cpp host C++: libutils <= system/core/libutils/Unicode.cpp host C++: libutils <= system/core/libutils/VectorImpl.cpp host C++: libutils <= system/core/libutils/misc.cpp host C++: libutils <= system/core/libutils/Looper.cpp Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/import_includes Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/import_includes host C++: libartpalette <= art/libartpalette/system/palette_fake.cc Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libbacktrace_intermediates/import_includes host C++: libnativebridge <= system/core/libnativebridge/native_bridge.cc host asm: libunwind <= external/libunwind/src/arm/getcontext.S host C: libunwind <= external/libunwind/src/mi/init.c host C: libunwind <= external/libunwind/src/mi/flush_cache.c system/core/libutils/Unicode.cpp: In function 'void utf32_codepoint_to_utf8(uint8_t*, char32_t, size_t)': system/core/libutils/Unicode.cpp:104:81: warning: this statement may fall through [-Wimplicit-fallthrough=] 104 | case 4: *--dstP = (uint8_t)((srcChar | kByteMark) & kByteMask); srcChar >>= 6; | ~~~~~~~~^~~~~ system/core/libutils/Unicode.cpp:105:9: note: here 105 | case 3: *--dstP = (uint8_t)((srcChar | kByteMark) & kByteMask); srcChar >>= 6; | ^~~~ system/core/libutils/Unicode.cpp:105:81: warning: this statement may fall through [-Wimplicit-fallthrough=] 105 | case 3: *--dstP = (uint8_t)((srcChar | kByteMark) & kByteMask); srcChar >>= 6; | ~~~~~~~~^~~~~ system/core/libutils/Unicode.cpp:106:9: note: here 106 | case 2: *--dstP = (uint8_t)((srcChar | kByteMark) & kByteMask); srcChar >>= 6; | ^~~~ system/core/libutils/Unicode.cpp:106:81: warning: this statement may fall through [-Wimplicit-fallthrough=] 106 | case 2: *--dstP = (uint8_t)((srcChar | kByteMark) & kByteMask); srcChar >>= 6; | ~~~~~~~~^~~~~ system/core/libutils/Unicode.cpp:107:9: note: here 107 | case 1: *--dstP = (uint8_t)(srcChar | kFirstByteMark[bytes]); | ^~~~ host C: libunwind <= external/libunwind/src/mi/mempool.c host C: libunwind <= external/libunwind/src/mi/strerror.c host C: libunwind <= external/libunwind/src/mi/backtrace.c host C: libunwind <= external/libunwind/src/mi/dyn-cancel.c host C: libunwind <= external/libunwind/src/mi/dyn-info-list.c art/sigchainlib/sigchain.cc: In instantiation of 'void art::lookup_next_symbol(T*, T, const char*) [with T = int (*)(int, const sigaction*, sigaction*)]': art/sigchainlib/sigchain.cc:117:23: required from here art/sigchainlib/sigchain.cc:103:45: warning: unused parameter 'wrapper' [-Wunused-parameter] 103 | static void lookup_next_symbol(T* output, T wrapper, const char* name) { | ~~^~~~~~~ art/sigchainlib/sigchain.cc: In instantiation of 'void art::lookup_next_symbol(T*, T, const char*) [with T = int (*)(int, const __sigset_t*, __sigset_t*)]': art/sigchainlib/sigchain.cc:118:23: required from here art/sigchainlib/sigchain.cc:103:45: warning: unused parameter 'wrapper' [-Wunused-parameter] host C: libunwind <= external/libunwind/src/mi/dyn-register.c host C: libunwind <= external/libunwind/src/mi/map.c system/core/libutils/SharedBuffer.cpp: In member function 'android::SharedBuffer* android::SharedBuffer::editResize(size_t) const': system/core/libutils/SharedBuffer.cpp:76:37: warning: 'void* realloc(void*, size_t)' moving an object of non-trivially copyable type 'class android::SharedBuffer'; use 'new' and 'delete' instead [-Wclass-memaccess] 76 | buf = (SharedBuffer*)realloc(buf, sizeof(SharedBuffer) + newSize); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from system/core/libutils/SharedBuffer.cpp:23: system/core/include/utils/SharedBuffer.h:27:7: note: 'class android::SharedBuffer' declared here 27 | class SharedBuffer | ^~~~~~~~~~~~ host C: libunwind <= external/libunwind/src/mi/Lmap.c In file included from system/core/include/cutils/log.h:1, from system/core/libutils/VectorImpl.cpp:23: system/core/libutils/VectorImpl.cpp: In member function 'ssize_t android::VectorImpl::setCapacity(size_t)': external/safe-iop/include/safe_iop.h:80:19: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 80 | ((typeof(_a))(~((typeof(_a)) 1 << ((sizeof(typeof(_a)) * CHAR_BIT) - 1)))) | ^~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smax' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:82:18: note: in expansion of macro '__sio' 82 | ((typeof(_a))(-__sio(m)(smax)(_a) - 1)) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smin' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:87:7: note: in expansion of macro '__sio' 87 | (__sio(m)(smin)(__B) <= ((typeof(__B))0))) || \ | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:341:26: note: in expansion of macro 'safe_mul' 341 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_allocation_size, new_capacity, mItemSize)); | ^~~~~~~~ external/safe-iop/include/safe_iop.h:80:4: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 80 | ((typeof(_a))(~((typeof(_a)) 1 << ((sizeof(typeof(_a)) * CHAR_BIT) - 1)))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smax' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:82:18: note: in expansion of macro '__sio' 82 | ((typeof(_a))(-__sio(m)(smax)(_a) - 1)) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smin' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:87:7: note: in expansion of macro '__sio' 87 | (__sio(m)(smin)(__B) <= ((typeof(__B))0))) || \ | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:341:26: note: in expansion of macro 'safe_mul' 341 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_allocation_size, new_capacity, mItemSize)); | ^~~~~~~~ external/safe-iop/include/safe_iop.h:82:4: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 82 | ((typeof(_a))(-__sio(m)(smax)(_a) - 1)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smin' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:87:7: note: in expansion of macro '__sio' 87 | (__sio(m)(smin)(__B) <= ((typeof(__B))0))) || \ | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:341:26: note: in expansion of macro 'safe_mul' 341 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_allocation_size, new_capacity, mItemSize)); | ^~~~~~~~ external/safe-iop/include/safe_iop.h:87:31: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 87 | (__sio(m)(smin)(__B) <= ((typeof(__B))0))) || \ | ^~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:341:26: note: in expansion of macro 'safe_mul' 341 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_allocation_size, new_capacity, mItemSize)); | ^~~~~~~~ external/safe-iop/include/safe_iop.h:80:19: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 80 | ((typeof(_a))(~((typeof(_a)) 1 << ((sizeof(typeof(_a)) * CHAR_BIT) - 1)))) | ^~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smax' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:82:18: note: in expansion of macro '__sio' 82 | ((typeof(_a))(-__sio(m)(smax)(_a) - 1)) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smin' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:89:7: note: in expansion of macro '__sio' 89 | (__sio(m)(smin)(__B) > ((typeof(__B))0)))) && \ | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:341:26: note: in expansion of macro 'safe_mul' 341 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_allocation_size, new_capacity, mItemSize)); | ^~~~~~~~ external/safe-iop/include/safe_iop.h:80:4: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 80 | ((typeof(_a))(~((typeof(_a)) 1 << ((sizeof(typeof(_a)) * CHAR_BIT) - 1)))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smax' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:82:18: note: in expansion of macro '__sio' 82 | ((typeof(_a))(-__sio(m)(smax)(_a) - 1)) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smin' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:89:7: note: in expansion of macro '__sio' 89 | (__sio(m)(smin)(__B) > ((typeof(__B))0)))) && \ | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:341:26: note: in expansion of macro 'safe_mul' 341 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_allocation_size, new_capacity, mItemSize)); | ^~~~~~~~ host C: libunwind <= external/libunwind/src/mi/Ldyn-extract.c external/safe-iop/include/safe_iop.h:82:4: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 82 | ((typeof(_a))(-__sio(m)(smax)(_a) - 1)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smin' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:89:7: note: in expansion of macro '__sio' 89 | (__sio(m)(smin)(__B) > ((typeof(__B))0)))) && \ | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:341:26: note: in expansion of macro 'safe_mul' 341 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_allocation_size, new_capacity, mItemSize)); | ^~~~~~~~ external/safe-iop/include/safe_iop.h:89:30: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 89 | (__sio(m)(smin)(__B) > ((typeof(__B))0)))) && \ | ^~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:341:26: note: in expansion of macro 'safe_mul' 341 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_allocation_size, new_capacity, mItemSize)); | ^~~~~~~~ host C: libunwind <= external/libunwind/src/mi/Lfind_dynamic_proc_info.c system/core/libutils/VectorImpl.cpp: In member function 'void* android::VectorImpl::_grow(size_t, size_t)': external/safe-iop/include/safe_iop.h:80:19: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 80 | ((typeof(_a))(~((typeof(_a)) 1 << ((sizeof(typeof(_a)) * CHAR_BIT) - 1)))) | ^~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smax' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:82:18: note: in expansion of macro '__sio' 82 | ((typeof(_a))(-__sio(m)(smax)(_a) - 1)) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smin' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:87:7: note: in expansion of macro '__sio' 87 | (__sio(m)(smin)(__B) <= ((typeof(__B))0))) || \ | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:403:30: note: in expansion of macro 'safe_mul' 403 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_alloc_size, new_capacity, mItemSize), | ^~~~~~~~ external/safe-iop/include/safe_iop.h:80:4: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 80 | ((typeof(_a))(~((typeof(_a)) 1 << ((sizeof(typeof(_a)) * CHAR_BIT) - 1)))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smax' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:82:18: note: in expansion of macro '__sio' 82 | ((typeof(_a))(-__sio(m)(smax)(_a) - 1)) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smin' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:87:7: note: in expansion of macro '__sio' 87 | (__sio(m)(smin)(__B) <= ((typeof(__B))0))) || \ | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:403:30: note: in expansion of macro 'safe_mul' 403 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_alloc_size, new_capacity, mItemSize), | ^~~~~~~~ external/safe-iop/include/safe_iop.h:82:4: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 82 | ((typeof(_a))(-__sio(m)(smax)(_a) - 1)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smin' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:87:7: note: in expansion of macro '__sio' 87 | (__sio(m)(smin)(__B) <= ((typeof(__B))0))) || \ | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:403:30: note: in expansion of macro 'safe_mul' 403 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_alloc_size, new_capacity, mItemSize), | ^~~~~~~~ external/safe-iop/include/safe_iop.h:87:31: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 87 | (__sio(m)(smin)(__B) <= ((typeof(__B))0))) || \ | ^~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:403:30: note: in expansion of macro 'safe_mul' 403 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_alloc_size, new_capacity, mItemSize), | ^~~~~~~~ external/safe-iop/include/safe_iop.h:80:19: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 80 | ((typeof(_a))(~((typeof(_a)) 1 << ((sizeof(typeof(_a)) * CHAR_BIT) - 1)))) | ^~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smax' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:82:18: note: in expansion of macro '__sio' 82 | ((typeof(_a))(-__sio(m)(smax)(_a) - 1)) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smin' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:89:7: note: in expansion of macro '__sio' 89 | (__sio(m)(smin)(__B) > ((typeof(__B))0)))) && \ | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:403:30: note: in expansion of macro 'safe_mul' 403 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_alloc_size, new_capacity, mItemSize), | ^~~~~~~~ external/safe-iop/include/safe_iop.h:80:4: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 80 | ((typeof(_a))(~((typeof(_a)) 1 << ((sizeof(typeof(_a)) * CHAR_BIT) - 1)))) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smax' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:82:18: note: in expansion of macro '__sio' 82 | ((typeof(_a))(-__sio(m)(smax)(_a) - 1)) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smin' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:89:7: note: in expansion of macro '__sio' 89 | (__sio(m)(smin)(__B) > ((typeof(__B))0)))) && \ | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:403:30: note: in expansion of macro 'safe_mul' 403 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_alloc_size, new_capacity, mItemSize), | ^~~~~~~~ external/safe-iop/include/safe_iop.h:82:4: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 82 | ((typeof(_a))(-__sio(m)(smax)(_a) - 1)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_smin' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:89:7: note: in expansion of macro '__sio' 89 | (__sio(m)(smin)(__B) > ((typeof(__B))0)))) && \ | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:403:30: note: in expansion of macro 'safe_mul' 403 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_alloc_size, new_capacity, mItemSize), | ^~~~~~~~ external/safe-iop/include/safe_iop.h:89:30: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 89 | (__sio(m)(smin)(__B) > ((typeof(__B))0)))) && \ | ^~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_assert' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_MACRO_type_enforce' external/safe-iop/include/safe_iop.h:72:37: note: in expansion of macro '__sio' 72 | #define OPAQUE_SAFE_IOP_PREFIX_m(x) __sio(MACRO_ ## x) | ^~~~~ external/safe-iop/include/safe_iop.h:70:18: note: in expansion of macro 'OPAQUE_SAFE_IOP_PREFIX_m' 70 | #define __sio(x) OPAQUE_SAFE_IOP_PREFIX_ ## x | ^~~~~~~~~~~~~~~~~~~~~~~ external/safe-iop/include/safe_iop.h:212:26: note: in expansion of macro '__sio' 212 | if (__sio(m)(assert)(__sio(m)(type_enforce)(__sio(var)(_a), \ | ^~~~~ system/core/libutils/VectorImpl.cpp:403:30: note: in expansion of macro 'safe_mul' 403 | LOG_ALWAYS_FATAL_IF(!safe_mul(&new_alloc_size, new_capacity, mItemSize), | ^~~~~~~~ host C: libunwind <= external/libunwind/src/mi/Lget_proc_info_by_ip.c host C: libunwind <= external/libunwind/src/mi/Lget_proc_name.c host C: libunwind <= external/libunwind/src/mi/Lput_dynamic_unwind_info.c host C: libunwind <= external/libunwind/src/mi/Ldestroy_addr_space.c host C: libunwind <= external/libunwind/src/mi/Lget_reg.c host C: libunwind <= external/libunwind/src/mi/Lset_reg.c host C: libunwind <= external/libunwind/src/mi/Lget_fpreg.c host C: libunwind <= external/libunwind/src/mi/Lset_fpreg.c host C: libunwind <= external/libunwind/src/mi/Lset_caching_policy.c system/core/libutils/Threads.cpp: In function 'int androidCreateRawThreadEtc(android_thread_func_t, void*, const char*, int32_t, size_t, void**)': system/core/libutils/Threads.cpp:160:21: warning: cast between incompatible function types from 'android_thread_func_t' {aka 'int (*)(void*)'} to 'android_pthread_entry' {aka 'void* (*)(void*)'} [-Wcast-function-type] 160 | (android_pthread_entry)entryFunction, userData); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ host C: libunwind <= external/libunwind/src/mi/Gdyn-extract.c host C: libunwind <= external/libunwind/src/mi/Gdyn-remote.c host C: libunwind <= external/libunwind/src/mi/Gfind_dynamic_proc_info.c host C: libunwind <= external/libunwind/src/mi/Gget_accessors.c host C: libunwind <= external/libunwind/src/mi/Gget_proc_info_by_ip.c host C: libunwind <= external/libunwind/src/mi/Gget_proc_name.c host C: libunwind <= external/libunwind/src/mi/Gput_dynamic_unwind_info.c host C: libunwind <= external/libunwind/src/mi/Gdestroy_addr_space.c host C: libunwind <= external/libunwind/src/mi/Gget_reg.c host C: libunwind <= external/libunwind/src/mi/Gset_reg.c host C: libunwind <= external/libunwind/src/mi/Gget_fpreg.c host C: libunwind <= external/libunwind/src/mi/Gset_fpreg.c host C: libunwind <= external/libunwind/src/mi/Gset_caching_policy.c host C: libunwind <= external/libunwind/src/dwarf/Lexpr.c host C: libunwind <= external/libunwind/src/dwarf/Lfde.c host C: libunwind <= external/libunwind/src/dwarf/Lparser.c host C: libunwind <= external/libunwind/src/dwarf/Lpe.c host C: libunwind <= external/libunwind/src/dwarf/Lstep_dwarf.c host C: libunwind <= external/libunwind/src/dwarf/Lfind_proc_info-lsb.c host C: libunwind <= external/libunwind/src/dwarf/Lfind_unwind_table.c host C: libunwind <= external/libunwind/src/dwarf/Gexpr.c host C: libunwind <= external/libunwind/src/dwarf/Gfde.c host C: libunwind <= external/libunwind/src/dwarf/Gfind_proc_info-lsb.c host C: libunwind <= external/libunwind/src/dwarf/Gfind_unwind_table.c host C: libunwind <= external/libunwind/src/dwarf/Gparser.c host C: libunwind <= external/libunwind/src/dwarf/Gpe.c host C: libunwind <= external/libunwind/src/dwarf/Gstep_dwarf.c host C: libunwind <= external/libunwind/src/dwarf/global.c host C: libunwind <= external/libunwind/src/os-common.c host C: libunwind <= external/libunwind/src/os-linux.c host C: libunwind <= external/libunwind/src/Los-common.c host C: libunwind <= external/libunwind/src/ptrace/_UPT_accessors.c host C: libunwind <= external/libunwind/src/ptrace/_UPT_access_fpreg.c host C: libunwind <= external/libunwind/src/ptrace/_UPT_access_mem.c host C: libunwind <= external/libunwind/src/ptrace/_UPT_access_reg.c host C: libunwind <= external/libunwind/src/ptrace/_UPT_create.c host C: libunwind <= external/libunwind/src/ptrace/_UPT_destroy.c host C: libunwind <= external/libunwind/src/ptrace/_UPT_find_proc_info.c host C: libunwind <= external/libunwind/src/ptrace/_UPT_get_dyn_info_list_addr.c host C: libunwind <= external/libunwind/src/ptrace/_UPT_put_unwind_info.c host C: libunwind <= external/libunwind/src/ptrace/_UPT_get_proc_name.c host C: libunwind <= external/libunwind/src/ptrace/_UPT_reg_offset.c host C: libunwind <= external/libunwind/src/ptrace/_UPT_resume.c host C: libunwind <= external/libunwind/src/arm/is_fpreg.c host C: libunwind <= external/libunwind/src/arm/regname.c host C: libunwind <= external/libunwind/src/arm/Gcreate_addr_space.c host C: libunwind <= external/libunwind/src/arm/Gget_proc_info.c host C: libunwind <= external/libunwind/src/arm/Gget_save_loc.c host C: libunwind <= external/libunwind/src/arm/Gglobal.c host C: libunwind <= external/libunwind/src/arm/Ginit.c host C: libunwind <= external/libunwind/src/arm/Ginit_local.c host C: libunwind <= external/libunwind/src/arm/Ginit_remote.c host C: libunwind <= external/libunwind/src/arm/Gregs.c host C: libunwind <= external/libunwind/src/arm/Gresume.c external/libunwind/src/ptrace/_UPT_get_dyn_info_list_addr.c: In function 'get_list_addr': external/libunwind/src/ptrace/_UPT_get_dyn_info_list_addr.c:80:10: note: '#pragma message: Implement get_list_addr(), please.' 80 | # pragma message("Implement get_list_addr(), please.") | ^~~~~~~ host C: libunwind <= external/libunwind/src/arm/Gstep.c host C: libunwind <= external/libunwind/src/arm/Lcreate_addr_space.c host C: libunwind <= external/libunwind/src/arm/Lget_proc_info.c host C: libunwind <= external/libunwind/src/arm/Lget_save_loc.c host C: libunwind <= external/libunwind/src/arm/Lglobal.c host C: libunwind <= external/libunwind/src/arm/Linit.c host C: libunwind <= external/libunwind/src/arm/Linit_local.c host C: libunwind <= external/libunwind/src/arm/Linit_remote.c host C: libunwind <= external/libunwind/src/arm/Lregs.c host C: libunwind <= external/libunwind/src/arm/Lresume.c host C: libunwind <= external/libunwind/src/arm/Lstep.c host C: libunwind <= external/libunwind/src/arm/Gis_signal_frame.c host C: libunwind <= external/libunwind/src/arm/Gex_tables.c host C: libunwind <= external/libunwind/src/arm/Lis_signal_frame.c host C: libunwind <= external/libunwind/src/arm/Lex_tables.c host C: libunwind <= external/libunwind/src/elf32.c host C++: libsigchain <= art/sigchainlib/sigchain.cc host C++: libelffile <= art/libelffile/elf/xz_utils.cc host C++: libelffile <= art/libelffile/stream/buffered_output_stream.cc host C++: libelffile <= art/libelffile/stream/file_output_stream.cc host C++: libelffile <= art/libelffile/stream/output_stream.cc host C++: libelffile <= art/libelffile/stream/vector_output_stream.cc host C++: libart-dexlayout <= art/dexlayout/compact_dex_writer.cc host C++: libart-dexlayout <= art/dexlayout/dexlayout.cc host C++: libart-dexlayout <= art/dexlayout/dex_ir.cc host C++: libart-dexlayout <= art/dexlayout/dex_ir_builder.cc host C++: libart-dexlayout <= art/dexlayout/dex_verify.cc host C++: libart-dexlayout <= art/dexlayout/dex_visualize.cc host C++: libart-dexlayout <= art/dexlayout/dex_writer.cc host C++: libjavacore <= libcore/dalvik/src/main/native/org_apache_harmony_dalvik_NativeTestTarget.cpp host C++: libjavacore <= libcore/luni/src/main/native/ExecStrings.cpp host C++: libjavacore <= libcore/luni/src/main/native/IcuUtilities.cpp host C++: libjavacore <= libcore/luni/src/main/native/JniException.cpp host C++: libjavacore <= libcore/luni/src/main/native/NetworkUtilities.cpp host C++: libjavacore <= libcore/luni/src/main/native/Register.cpp host C++: libjavacore <= libcore/luni/src/main/native/ZipUtilities.cpp host C++: libjavacore <= libcore/luni/src/main/native/android_system_OsConstants.cpp host C++: libjavacore <= libcore/luni/src/main/native/cbigint.cpp host C++: libjavacore <= libcore/luni/src/main/native/java_lang_StringToReal.cpp In file included from art/libelffile/stream/output_stream.h:23, from art/libelffile/stream/file_output_stream.h:22, from art/libelffile/stream/file_output_stream.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libjavacore <= libcore/luni/src/main/native/java_lang_invoke_MethodHandle.cpp host C++: libjavacore <= libcore/luni/src/main/native/java_util_regex_Matcher.cpp In file included from art/libelffile/stream/output_stream.h:23, from art/libelffile/stream/vector_output_stream.h:20, from art/libelffile/stream/vector_output_stream.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libelffile/stream/output_stream.h:23, from art/libelffile/stream/output_stream.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libjavacore <= libcore/luni/src/main/native/java_util_regex_Pattern.cpp host C++: libjavacore <= libcore/luni/src/main/native/libcore_icu_ICU.cpp In file included from art/libelffile/stream/output_stream.h:23, from art/libelffile/stream/buffered_output_stream.h:22, from art/libelffile/stream/buffered_output_stream.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/dexlayout/compact_dex_writer.h:25, from art/dexlayout/compact_dex_writer.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libjavacore <= libcore/luni/src/main/native/libcore_icu_NativeConverter.cpp host C++: libjavacore <= libcore/luni/src/main/native/libcore_icu_TimeZoneNames.cpp host C++: libjavacore <= libcore/luni/src/main/native/libcore_io_AsynchronousCloseMonitor.cpp host C++: libjavacore <= libcore/luni/src/main/native/libcore_io_Linux.cpp host C++: libjavacore <= libcore/luni/src/main/native/libcore_io_Memory.cpp host C++: libjavacore <= libcore/luni/src/main/native/libcore_util_NativeAllocationRegistry.cpp host C++: libjavacore <= libcore/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp In file included from art/libartbase/base/leb128.h:26, from art/libelffile/elf/xz_utils.cc:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libjavacore <= libcore/luni/src/main/native/sun_misc_Unsafe.cpp Import includes file: out/host/linux-x86/obj/SHARED_LIBRARIES/libopenjdk_intermediates/import_includes host C++: libjavacore <= libcore/luni/src/main/native/valueOf.cpp host C++: libopenjdkjvm <= art/openjdkjvm/OpenjdkJvm.cc host C: libfdlibm <= external/fdlibm/k_standard.c host C: libfdlibm <= external/fdlibm/k_rem_pio2.c In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31, from art/libdexfile/dex/compact_dex_level.h:22, from art/dexlayout/dex_writer.h:27, from art/dexlayout/compact_dex_writer.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C: libfdlibm <= external/fdlibm/k_cos.c host C: libfdlibm <= external/fdlibm/k_sin.c In file included from art/libartbase/base/unix_file/fd_file.h:24, from art/dexlayout/dex_writer.h:26, from art/dexlayout/dex_writer.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C: libfdlibm <= external/fdlibm/k_tan.c In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/compact_dex_level.h:22, from art/dexlayout/dexlayout.h:32, from art/dexlayout/dexlayout.cc:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C: libfdlibm <= external/fdlibm/e_acos.c host C: libfdlibm <= external/fdlibm/e_acosh.c In file included from art/libartbase/base/leb128.h:26, from art/dexlayout/dex_ir.h:27, from art/dexlayout/dex_ir.cc:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/leb128.h:26, from art/dexlayout/dex_ir.h:27, from art/dexlayout/dex_ir_builder.h:22, from art/dexlayout/dex_ir_builder.cc:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31, from art/libdexfile/dex/compact_dex_level.h:22, from art/dexlayout/dex_writer.h:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C: libfdlibm <= external/fdlibm/e_asin.c external/fdlibm/k_rem_pio2.c: In function '__kernel_rem_pio2': external/fdlibm/k_rem_pio2.c:188:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 188 | for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; q[i] = fw; | ^~~ external/fdlibm/k_rem_pio2.c:188:61: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 188 | for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; q[i] = fw; | ^ host C: libfdlibm <= external/fdlibm/e_atan2.c In file included from art/libartbase/base/leb128.h:26, from art/dexlayout/dex_ir.h:27, from art/dexlayout/dex_verify.h:24, from art/dexlayout/dex_verify.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C: libfdlibm <= external/fdlibm/e_atanh.c external/fdlibm/k_tan.c:1: warning: ignoring '#pragma ident ' [-Wunknown-pragmas] 1 | #pragma ident "@(#)k_tan.c 1.5 04/04/22 SMI" | In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/dex_file-inl.h:20, from art/dexlayout/dex_ir.h:30: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/dex_file-inl.h:20, from art/dexlayout/dex_ir.h:30: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C: libfdlibm <= external/fdlibm/e_cosh.c In file included from art/libartbase/base/leb128.h:26, from art/dexlayout/dex_ir.h:27, from art/dexlayout/dex_visualize.cc:34: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C: libfdlibm <= external/fdlibm/e_exp.c In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/dex_file-inl.h:20, from art/dexlayout/dex_ir.h:30: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C: libfdlibm <= external/fdlibm/e_fmod.c external/fdlibm/e_asin.c: In function '__ieee754_asin': external/fdlibm/e_asin.c:88:15: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 88 | } else | ^~~~ external/fdlibm/e_asin.c:90:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 90 | p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5))))); | ^ In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/dex_file-inl.h:20, from art/dexlayout/dex_ir.h:30: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C: libfdlibm <= external/fdlibm/e_gamma.c external/fdlibm/e_atan2.c: In function '__ieee754_atan2': external/fdlibm/e_atan2.c:74:15: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] 74 | if((hx-0x3ff00000|lx)==0) return ieee_atan(y); /* x=1.0 */ | ~~^~~~~~~~~~~ host C: libfdlibm <= external/fdlibm/e_gamma_r.c external/fdlibm/e_asin.c:91:26: warning: 't' may be used uninitialized [-Wmaybe-uninitialized] 91 | q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ external/fdlibm/e_asin.c:76:16: note: 't' was declared here 76 | double t,w,p,q,c,r,s; | ^ external/fdlibm/e_cosh.c: In function '__ieee754_cosh': external/fdlibm/e_cosh.c:81:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 81 | (ix==0x408633ce)&&(lx<=(unsigned)0x8fb9f87d)) { | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ host C: libfdlibm <= external/fdlibm/e_hypot.c host C: libfdlibm <= external/fdlibm/e_j0.c host C: libfdlibm <= external/fdlibm/e_j1.c host C: libfdlibm <= external/fdlibm/e_jn.c host C: libfdlibm <= external/fdlibm/e_lgamma.c external/fdlibm/e_exp.c: In function '__ieee754_exp': external/fdlibm/e_exp.c:148:52: warning: 'hi' may be used uninitialized [-Wmaybe-uninitialized] 148 | else y = one-((lo-(x*c)/(2.0-c))-hi); | ~~~~~~~~~~~~~~~~~~~^~~~ external/fdlibm/e_exp.c:108:18: note: 'hi' was declared here 108 | double y,hi,lo,c,t; | ^~ external/fdlibm/e_exp.c:148:37: warning: 'lo' may be used uninitialized [-Wmaybe-uninitialized] 148 | else y = one-((lo-(x*c)/(2.0-c))-hi); | ~~~^~~~~~~~~~~~~~~ external/fdlibm/e_exp.c:108:21: note: 'lo' was declared here 108 | double y,hi,lo,c,t; | ^~ external/fdlibm/e_exp.c:147:11: warning: 'k' may be used uninitialized [-Wmaybe-uninitialized] 147 | if(k==0) return one-((x*c)/(c-2.0)-x); | ^ external/fdlibm/e_exp.c:109:13: note: 'k' was declared here 109 | int k,xsb; | ^ host C: libfdlibm <= external/fdlibm/e_lgamma_r.c In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ host C: libfdlibm <= external/fdlibm/e_log.c In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ external/fdlibm/k_standard.c: In function '__kernel_standard': external/fdlibm/k_standard.c:732:19: warning: 'exc.retval' may be used uninitialized [-Wmaybe-uninitialized] 732 | return exc.retval; | ~~~^~~~~~~ external/fdlibm/k_standard.c:84:26: note: 'exc' declared here 84 | struct exception exc; | ^~~ host C: libfdlibm <= external/fdlibm/e_log10.c In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ external/fdlibm/e_jn.c: In function '__ieee754_yn': external/fdlibm/e_jn.c:265:35: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 265 | for(i=1;i art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ host C: libfdlibm <= external/fdlibm/e_scalb.c art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ host C: libfdlibm <= external/fdlibm/e_sinh.c host C: libfdlibm <= external/fdlibm/e_sqrt.c external/fdlibm/e_pow.c: In function '__ieee754_pow': external/fdlibm/e_pow.c:138:35: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 138 | if((j<<(52-k))==ly) yisint = 2-(j&1); | ^~ host C: libfdlibm <= external/fdlibm/w_acos.c external/fdlibm/e_j0.c: In function 'qzero': external/fdlibm/e_j0.c:475:14: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized] 475 | r = p[0]+z*(p[1]+z*(p[2]+z*(p[3]+z*(p[4]+z*p[5])))); | ~^~~ external/fdlibm/e_j0.c:463:23: note: 'p' was declared here 463 | const double *p,*q; | ^ external/fdlibm/e_j0.c:476:21: warning: 'q' may be used uninitialized [-Wmaybe-uninitialized] 476 | s = one+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*(q[4]+z*q[5]))))); | ~^~~ external/fdlibm/e_j0.c:463:26: note: 'q' was declared here 463 | const double *p,*q; | ^ host C: libfdlibm <= external/fdlibm/w_acosh.c external/fdlibm/e_j1.c: In function 'qone': external/fdlibm/e_j1.c:474:14: warning: 'p' may be used uninitialized [-Wmaybe-uninitialized] 474 | r = p[0]+z*(p[1]+z*(p[2]+z*(p[3]+z*(p[4]+z*p[5])))); | ~^~~ external/fdlibm/e_j1.c:462:23: note: 'p' was declared here 462 | const double *p,*q; | ^ external/fdlibm/e_j1.c:475:21: warning: 'q' may be used uninitialized [-Wmaybe-uninitialized] 475 | s = one+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*(q[4]+z*q[5]))))); | ~^~~ external/fdlibm/e_j1.c:462:26: note: 'q' was declared here 462 | const double *p,*q; | ^ In file included from art/openjdkjvm/../../libcore/ojluni/src/main/native/jvm_md.h:68, from art/openjdkjvm/../../libcore/ojluni/src/main/native/jvm.h:33, from art/openjdkjvm/OpenjdkJvm.cc:45: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from art/openjdkjvm/OpenjdkJvm.cc:47: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C: libfdlibm <= external/fdlibm/w_asin.c external/fdlibm/e_lgamma_r.c: In function '__ieee754_lgamma_r': host C: libfdlibm <= external/fdlibm/w_atan2.c external/fdlibm/e_lgamma_r.c:302:20: warning: 'nadj' may be used uninitialized [-Wmaybe-uninitialized] 302 | if(hx<0) r = nadj - r; | ~~^~~~~~~~~~ external/fdlibm/e_lgamma_r.c:213:22: note: 'nadj' was declared here 213 | double t,y,z,nadj,p,p1,p2,p3,q,r,w; | ^~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/common_throws.h:22, from art/openjdkjvm/OpenjdkJvm.cc:48: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ external/fdlibm/e_sinh.c: In function '__ieee754_sinh': external/fdlibm/e_sinh.c:74:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 74 | if (ix<0x408633CE || (ix==0x408633ce)&&(lx<=(unsigned)0x8fb9f87d)) { | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ host C: libfdlibm <= external/fdlibm/w_atanh.c external/fdlibm/e_sqrt.c: In function '__ieee754_sqrt': external/fdlibm/e_sqrt.c:161:30: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 161 | if(((t1&sign)==sign)&&(s1&sign)==0) s0 += 1; | ^~ host C: libfdlibm <= external/fdlibm/w_cosh.c host C: libfdlibm <= external/fdlibm/w_exp.c host C: libfdlibm <= external/fdlibm/w_fmod.c In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ host C: libfdlibm <= external/fdlibm/w_gamma.c host C: libfdlibm <= external/fdlibm/w_gamma_r.c In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ host C: libfdlibm <= external/fdlibm/w_hypot.c art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ host C: libfdlibm <= external/fdlibm/w_j0.c host C: libfdlibm <= external/fdlibm/w_j1.c host C: libfdlibm <= external/fdlibm/w_jn.c art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ host C: libfdlibm <= external/fdlibm/w_lgamma.c host C: libfdlibm <= external/fdlibm/w_lgamma_r.c In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/openjdkjvm/OpenjdkJvm.cc:49: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C: libfdlibm <= external/fdlibm/w_log.c host C: libfdlibm <= external/fdlibm/w_log10.c host C: libfdlibm <= external/fdlibm/w_pow.c host C: libfdlibm <= external/fdlibm/w_remainder.c host C: libfdlibm <= external/fdlibm/w_scalb.c host C: libfdlibm <= external/fdlibm/w_sinh.c host C: libfdlibm <= external/fdlibm/w_sqrt.c host C: libfdlibm <= external/fdlibm/s_asinh.c host C: libfdlibm <= external/fdlibm/s_atan.c host C: libfdlibm <= external/fdlibm/s_cbrt.c host C: libfdlibm <= external/fdlibm/s_ceil.c host C: libfdlibm <= external/fdlibm/s_copysign.c host C: libfdlibm <= external/fdlibm/s_cos.c host C: libfdlibm <= external/fdlibm/s_erf.c host C: libfdlibm <= external/fdlibm/s_expm1.c host C: libfdlibm <= external/fdlibm/s_fabs.c external/fdlibm/s_ceil.c: In function 'ieee_ceil': external/fdlibm/s_ceil.c:68:29: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 68 | if(j to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from art/openjdkjvm/OpenjdkJvm.cc:47: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from libandroidfw/include/android/configuration.h:29, from libandroidfw/include/androidfw/ResourceTypes.h:35, from libandroidfw/AssetManager.cpp:29: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ host C++: dalvikvm <= art/dalvikvm/dalvikvm.cc host C++: libnativehelper <= libnativehelper/JNIHelp.cpp In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/common_throws.h:22, from art/openjdkjvm/OpenjdkJvm.cc:48: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libnativehelper <= libnativehelper/JniConstants.cpp host C++: libnativehelper <= libnativehelper/toStringArray.cpp host C++: libnativehelper <= libnativehelper/JniInvocation.cpp host C++: libnativehelper <= libnativehelper/AsynchronousCloseMonitor.cpp host SharedLib: liblog (out/host/linux-x86/obj/lib/liblog.so) host C: acp <= build/tools/acp/acp.c In file included from libandroidfw/include/android/configuration.h:29, from libandroidfw/include/androidfw/ResourceTypes.h:35, from libandroidfw/include/androidfw/Chunk.h:30, from libandroidfw/include/androidfw/LoadedArsc.h:29, from libandroidfw/include/androidfw/ApkAssets.h:27, from libandroidfw/ApkAssets.cpp:17: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ host StaticLib: libsigchain (out/host/linux-x86/obj/STATIC_LIBRARIES/libsigchain_intermediates/libsigchain.a) In file included from system/core/include/ziparchive/zip_archive.h:25, from libandroidfw/ZipFileRO.cpp:27: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ In file included from libandroidfw/include/android/configuration.h:29, from libandroidfw/include/androidfw/ResourceTypes.h:35, from libandroidfw/include/androidfw/Chunk.h:30, from libandroidfw/ChunkIterator.cpp:17: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ In file included from libandroidfw/include/android/configuration.h:29, from libandroidfw/include/androidfw/ResourceTypes.h:35, from libandroidfw/include/androidfw/ConfigDescription.h:22, from libandroidfw/ConfigDescription.cpp:17: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ host StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a) host C++: dex2oat <= art/dex2oat/dex2oat_options.cc host C++: dex2oat <= art/dex2oat/dex2oat.cc host C++: libprofile <= art/libprofile/profile/profile_compilation_info.cc host C++: libbase <= libbase/file.cpp In file included from libandroidfw/include/android/configuration.h:29, from libandroidfw/include/androidfw/ResourceTypes.h:35, from libandroidfw/Idmap.cpp:32: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ host C++: libbase <= libbase/stringprintf.cpp In file included from libandroidfw/include/android/configuration.h:29, from libandroidfw/include/androidfw/ResourceTypes.h:35, from libandroidfw/include/androidfw/Chunk.h:30, from libandroidfw/include/androidfw/LoadedArsc.h:29, from libandroidfw/include/androidfw/ApkAssets.h:27, from libandroidfw/include/androidfw/AssetManager2.h:27, from libandroidfw/AssetManager2.cpp:19: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ In file included from system/core/include/ziparchive/zip_archive.h:25, from libandroidfw/ZipUtils.cpp:27: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ host C++: libbase <= libbase/strings.cpp In file included from libandroidfw/include/android/configuration.h:29, from libandroidfw/include/androidfw/ResourceTypes.h:35, from libandroidfw/include/androidfw/Chunk.h:30, from libandroidfw/include/androidfw/LoadedArsc.h:29, from libandroidfw/include/androidfw/ApkAssets.h:27, from libandroidfw/include/androidfw/AssetManager2.h:27, from libandroidfw/include/androidfw/AttributeResolution.h:20, from libandroidfw/AttributeResolution.cpp:17: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ host C++: libbase <= libbase/logging.cpp In file included from libandroidfw/include/android/configuration.h:29, from libandroidfw/include/androidfw/ResourceTypes.h:35, from libandroidfw/include/androidfw/Chunk.h:30, from libandroidfw/include/androidfw/LoadedArsc.h:29, from libandroidfw/LoadedArsc.cpp:19: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ In file included from libandroidfw/include/android/configuration.h:29, from libandroidfw/include/androidfw/ResourceTypes.h:35, from libandroidfw/include/androidfw/TypeWrappers.h:20, from libandroidfw/TypeWrappers.cpp:17: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ host C++: libbase <= libbase/errors_unix.cpp host SharedLib: libcutils (out/host/linux-x86/obj/lib/libcutils.so) host C++: libziparchive <= system/core/libziparchive/zip_archive.cc In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/openjdkjvm/OpenjdkJvm.cc:49: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host SharedLib: libutils (out/host/linux-x86/obj/lib/libutils.so) host SharedLib: libnativebridge (out/host/linux-x86/obj/lib/libnativebridge.so) In file included from libandroidfw/include/android/configuration.h:29, from libandroidfw/include/androidfw/ResourceTypes.h:35, from libandroidfw/androidfw_c_api.cpp:2: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ In file included from libandroidfw/include/android/configuration.h:29, from libandroidfw/include/androidfw/ResourceTypes.h:35, from libandroidfw/include/androidfw/Locale.h:23, from libandroidfw/Locale.cpp:18: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ host C++: libbacktrace <= system/core/libbacktrace/Backtrace.cpp host C++: libbacktrace <= system/core/libbacktrace/BacktraceCurrent.cpp host C++: libbacktrace <= system/core/libbacktrace/BacktraceMap.cpp In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/dexlayout/compact_dex_writer.h:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libbacktrace <= system/core/libbacktrace/BacktracePtrace.cpp host C++: libbacktrace <= system/core/libbacktrace/ThreadEntry.cpp In file included from libandroidfw/include/android/configuration.h:29, from libandroidfw/include/androidfw/ResourceTypes.h:35, from libandroidfw/ResourceTypes.cpp:36: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ host C++: libbacktrace <= system/core/libbacktrace/UnwindCurrent.cpp In file included from libandroidfw/include/android/configuration.h:29, from libandroidfw/include/androidfw/ResourceTypes.h:35, from libandroidfw/include/androidfw/Chunk.h:30, from libandroidfw/include/androidfw/LoadedArsc.h:29, from libandroidfw/include/androidfw/ApkAssets.h:27, from libandroidfw/include/androidfw/AssetManager2.h:27, from libandroidfw/include/androidfw/ResourceUtils.h:20, from libandroidfw/ResourceUtils.cpp:17: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ In file included from art/libartbase/base/array_ref.h:23, from art/libelffile/elf/xz_utils.h:22, from art/libelffile/elf/xz_utils.cc:17: art/libelffile/elf/xz_utils.cc: In function 'void art::XzCompress(ArrayRef, std::vector*, int)': libbase/include/android-base/logging.h:266:35: warning: passing 'lzma_ret' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:95:3: note: in expansion of macro 'CHECK_EQ' 95 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:95:3: note: in expansion of macro 'CHECK_EQ' 95 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'lzma_ret' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:95:3: note: in expansion of macro 'CHECK_EQ' 95 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:95:3: note: in expansion of macro 'CHECK_EQ' 95 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'lzma_ret' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:95:3: note: in expansion of macro 'CHECK_EQ' 95 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:95:3: note: in expansion of macro 'CHECK_EQ' 95 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'lzma_ret' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:95:3: note: in expansion of macro 'CHECK_EQ' 95 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:95:3: note: in expansion of macro 'CHECK_EQ' 95 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'lzma_ret' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:95:3: note: in expansion of macro 'CHECK_EQ' 95 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:95:3: note: in expansion of macro 'CHECK_EQ' 95 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ host C++: libbacktrace <= system/core/libbacktrace/UnwindMap.cpp libbase/include/android-base/logging.h:266:67: warning: passing 'lzma_ret' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:95:3: note: in expansion of macro 'CHECK_EQ' 95 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:95:3: note: in expansion of macro 'CHECK_EQ' 95 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:101:14: warning: declaration of 'ret' shadows a previous local [-Wshadow] 101 | lzma_ret ret = lzma_code(&strm, LZMA_FINISH); | ^~~ art/libelffile/elf/xz_utils.cc:94:12: note: shadowed declaration is here 94 | lzma_ret ret = lzma_easy_encoder(&strm, level, LZMA_CHECK_CRC64); | ^~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from art/dexlayout/dex_writer.h:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libbacktrace <= system/core/libbacktrace/UnwindPtrace.cpp host C: libbacktrace <= system/core/libbacktrace/thread_utils.c In file included from art/libartbase/arch/instruction_set.h:25, from art/dex2oat/dex2oat_options.h:24, from art/dex2oat/dex2oat_options.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'lzma_ret' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:109:7: note: in expansion of macro 'CHECK_EQ' 109 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:109:7: note: in expansion of macro 'CHECK_EQ' 109 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'lzma_ret' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:109:7: note: in expansion of macro 'CHECK_EQ' 109 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:109:7: note: in expansion of macro 'CHECK_EQ' 109 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'lzma_ret' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:109:7: note: in expansion of macro 'CHECK_EQ' 109 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:109:7: note: in expansion of macro 'CHECK_EQ' 109 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'lzma_ret' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:109:7: note: in expansion of macro 'CHECK_EQ' 109 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:109:7: note: in expansion of macro 'CHECK_EQ' 109 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'lzma_ret' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:109:7: note: in expansion of macro 'CHECK_EQ' 109 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:109:7: note: in expansion of macro 'CHECK_EQ' 109 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'lzma_ret' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:109:7: note: in expansion of macro 'CHECK_EQ' 109 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:109:7: note: in expansion of macro 'CHECK_EQ' 109 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ host SharedLib: libunwind (out/host/linux-x86/obj/lib/libunwind.so) art/libelffile/elf/xz_utils.cc: In function 'void art::XzDecompress(ArrayRef, std::vector*)': libbase/include/android-base/logging.h:266:35: warning: passing 'lzma_ret' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:159:3: note: in expansion of macro 'CHECK_EQ' 159 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:159:3: note: in expansion of macro 'CHECK_EQ' 159 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'lzma_ret' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:159:3: note: in expansion of macro 'CHECK_EQ' 159 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:159:3: note: in expansion of macro 'CHECK_EQ' 159 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'lzma_ret' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:159:3: note: in expansion of macro 'CHECK_EQ' 159 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:159:3: note: in expansion of macro 'CHECK_EQ' 159 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ host SharedLib: libsigchain (out/host/linux-x86/obj/lib/libsigchain.so) libbase/include/android-base/logging.h:266:67: warning: passing 'lzma_ret' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:159:3: note: in expansion of macro 'CHECK_EQ' 159 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:159:3: note: in expansion of macro 'CHECK_EQ' 159 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'lzma_ret' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:159:3: note: in expansion of macro 'CHECK_EQ' 159 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:159:3: note: in expansion of macro 'CHECK_EQ' 159 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'lzma_ret' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:159:3: note: in expansion of macro 'CHECK_EQ' 159 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:159:3: note: in expansion of macro 'CHECK_EQ' 159 | CHECK_EQ(ret, LZMA_OK); | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:165:14: warning: declaration of 'ret' shadows a previous local [-Wshadow] 165 | lzma_ret ret = lzma_code(&strm, LZMA_FINISH); | ^~~ art/libelffile/elf/xz_utils.cc:158:12: note: shadowed declaration is here 158 | lzma_ret ret = lzma_stream_decoder(&strm, UINT64_MAX, 0); | ^~~ libbase/include/android-base/logging.h:266:35: warning: passing 'lzma_ret' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:173:7: note: in expansion of macro 'CHECK_EQ' 173 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:173:7: note: in expansion of macro 'CHECK_EQ' 173 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'lzma_ret' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:173:7: note: in expansion of macro 'CHECK_EQ' 173 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:173:7: note: in expansion of macro 'CHECK_EQ' 173 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'lzma_ret' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:173:7: note: in expansion of macro 'CHECK_EQ' 173 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:173:7: note: in expansion of macro 'CHECK_EQ' 173 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'lzma_ret' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:173:7: note: in expansion of macro 'CHECK_EQ' 173 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:173:7: note: in expansion of macro 'CHECK_EQ' 173 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'lzma_ret' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:173:7: note: in expansion of macro 'CHECK_EQ' 173 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:173:7: note: in expansion of macro 'CHECK_EQ' 173 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'lzma_ret' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:173:7: note: in expansion of macro 'CHECK_EQ' 173 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/libelffile/elf/xz_utils.cc:173:7: note: in expansion of macro 'CHECK_EQ' 173 | CHECK_EQ(ret, LZMA_STREAM_END); | ^~~~~~~~ host C++: libopenjdk <= libcore/ojluni/src/main/native/linux_close.cpp host C++: libopenjdk <= libcore/ojluni/src/main/native/Character.cpp host C++: libopenjdk <= libcore/ojluni/src/main/native/Register.cpp host C++: libopenjdk <= libcore/ojluni/src/main/native/socket_tagger_util.cpp host C: libopenjdk <= libcore/ojluni/src/main/native/java_util_zip_ZipFile.c host C: libopenjdk <= libcore/ojluni/src/main/native/java_util_zip_Inflater.c host C: libopenjdk <= libcore/ojluni/src/main/native/java_util_zip_Deflater.c In file included from /usr/include/bsd/sys/cdefs.h:54, from /usr/include/bsd/libutil.h:45, from /usr/include/bsd/stdlib.h:39, from libbase/logging.cpp:32: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ In file included from libcore/ojluni/src/main/native/linux_close.cpp:38: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/stl_tree.h:63, from /usr/include/c++/13.2.1/set:62, from art/dexlayout/dexlayout.h:29: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/arch/instruction_set_features.h:24, from art/dex2oat/dex2oat.cc:119: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/Character.cpp:22: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from system/core/include/ziparchive/zip_archive.h:25, from system/core/libziparchive/zip_archive.cc:43: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/java_util_zip_ZipFile.c:38: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/java_util_zip_CRC32.c In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/java_util_zip_Inflater.c:37: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/dexlayout/dex_ir.h:24: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/Adler32.c In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/libprofile/profile/profile_compilation_info.h:23, from art/libprofile/profile/profile_compilation_info.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/tools/cpp-define-generator/globals.def:30: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_utils.h:23, from art/tools/cpp-define-generator/globals.def:18: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/utils.h:32, from art/cmdline/cmdline_result.h:21, from art/cmdline/cmdline_parse_result.h:20, from art/cmdline/cmdline_type_parser.h:20, from art/cmdline/cmdline_types.h:23, from art/dex2oat/dex2oat_options.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/tools/cpp-define-generator/globals.def:30: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_utils.h:23, from art/tools/cpp-define-generator/globals.def:18: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/zip_util.c In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/string-inl.h:23, from art/openjdkjvm/OpenjdkJvm.cc:54: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37, from art/runtime/art_method-inl.h:20, from art/dex2oat/dex2oat.cc:121: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/dexlayout/dex_ir_builder.cc:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/dexlayout/dex_ir.h:24: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/jni_util.c art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/jni_util_md.c host C: libopenjdk <= libcore/ojluni/src/main/native/io_util.c host C: libopenjdk <= libcore/ojluni/src/main/native/canonicalize_md.c In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from art/dexlayout/dex_visualize.cc:28: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/cmdline/cmdline_types.h:35: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/jni_util.c:30: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/FileDescriptor_md.c host C: libopenjdk <= libcore/ojluni/src/main/native/DatagramChannelImpl.c In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/zip_util.c:44: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics host C: libopenjdk <= libcore/ojluni/src/main/native/DatagramDispatcher.c art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/io_util.c:33: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/Console_md.c host C: libopenjdk <= libcore/ojluni/src/main/native/IOUtil.c In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C: libopenjdk <= libcore/ojluni/src/main/native/PollArrayWrapper.c In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/tools/cpp-define-generator/globals.def:30: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_utils.h:23, from art/tools/cpp-define-generator/globals.def:18: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/DatagramChannelImpl.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/DatagramDispatcher.c:31: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/FileDispatcherImpl.c art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from libcore/ojluni/src/main/native/net_util_md.h:36, from libcore/ojluni/src/main/native/net_util.h:31, from libcore/ojluni/src/main/native/DatagramChannelImpl.c:42: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/FileOutputStream_md.c In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/IOUtil.c:32: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/FileInputStream.c In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/Console_md.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/FileSystemPreferences.c host C: libopenjdk <= libcore/ojluni/src/main/native/EPoll.c system/core/libbacktrace/BacktraceCurrent.cpp: In member function 'bool BacktraceCurrent::DiscardFrame(const backtrace_frame_data_t&)': system/core/libbacktrace/BacktraceCurrent.cpp:90:62: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive] 90 | const std::string library = basename(frame.map.name.c_str()); | ~~~~~~~~~~~~~~~~~~~~^~ | | | const char* In file included from system/core/libbacktrace/BacktraceCurrent.cpp:39: /usr/include/libgen.h:9:16: note: initializing argument 1 of 'char* basename(char*)' 9 | char *basename(char *); | ^~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/net_util.h:29, from libcore/ojluni/src/main/native/SocketChannelImpl.c:40: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/PollArrayWrapper.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/EPollPort.c In file included from libcore/ojluni/src/main/native/net_util_md.h:36, from libcore/ojluni/src/main/native/net_util.h:31: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ cc1plus: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1plus: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/FileDispatcherImpl.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libcore/ojluni/src/main/native/canonicalize_md.c: In function 'JDK_canonicalize': In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ libcore/ojluni/src/main/native/canonicalize_md.c:214:9: warning: 'strncpy' specified bound 4097 equals destination size [-Wstringop-truncation] 214 | strncpy(path, original, sizeof(path)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/FileOutputStream_md.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/FileInputStream.c:37: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/FileChannelImpl.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/UnixAsynchronousServerSocketChannelImpl.c host C: libopenjdk <= libcore/ojluni/src/main/native/UnixAsynchronousSocketChannelImpl.c cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ At top level: cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/EPoll.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/io_util_md.c cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics host C: libopenjdk <= libcore/ojluni/src/main/native/NativeThread.c system/core/libbacktrace/Backtrace.cpp: In member function 'std::string Backtrace::GetErrorString(BacktraceUnwindError)': system/core/libbacktrace/Backtrace.cpp:160:1: warning: control reaches end of non-void function [-Wreturn-type] 160 | } | ^ host C: libopenjdk <= libcore/ojluni/src/main/native/FileKey.c art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from art/libelffile/elf/elf_utils.h:22, from art/libelffile/elf/elf_builder.h:29, from art/compiler/debug/elf_debug_writer.h:28, from art/dex2oat/dex2oat.cc:141: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/ObjectOutputStream.c host C: libopenjdk <= libcore/ojluni/src/main/native/ObjectInputStream.c host C: libopenjdk <= libcore/ojluni/src/main/native/LinuxNativeDispatcher.c In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/net_util.h:29, from libcore/ojluni/src/main/native/UnixAsynchronousSocketChannelImpl.c:31: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/io_util_md.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics host C: libopenjdk <= libcore/ojluni/src/main/native/LinuxWatchService.c In file included from libcore/ojluni/src/main/native/net_util_md.h:36, from libcore/ojluni/src/main/native/net_util.h:31: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ libandroidfw/include/androidfw/ConfigDescription.h: In constructor 'android::ConfigDescription::ConfigDescription()': libandroidfw/include/androidfw/ConfigDescription.h:145:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct android::ConfigDescription' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 145 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ libandroidfw/include/androidfw/ConfigDescription.h:62:8: note: 'struct android::ConfigDescription' declared here 62 | struct ConfigDescription : public ResTable_config { | ^~~~~~~~~~~~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics libandroidfw/Asset.cpp: In static member function 'static std::unique_ptr android::Asset::createFromUncompressedMap(std::unique_ptr, AccessMode)': libandroidfw/Asset.cpp:317:21: warning: redundant move in return statement [-Wredundant-move] 317 | return std::move(pAsset); | ~~~~~~~~~^~~~~~~~ libandroidfw/Asset.cpp:317:21: note: remove 'std::move' call In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/NativeThread.c:30: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/UnixCopyFile.c In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/FileKey.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/UnixNativeDispatcher.c art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ libandroidfw/Asset.cpp: In static member function 'static std::unique_ptr android::Asset::createFromCompressedMap(std::unique_ptr, size_t, AccessMode)': libandroidfw/Asset.cpp:351:19: warning: redundant move in return statement [-Wredundant-move] 351 | return std::move(pAsset); | ~~~~~~~~~^~~~~~~~ libandroidfw/Asset.cpp:351:19: note: remove 'std::move' call host C: libopenjdk <= libcore/ojluni/src/main/native/InetAddress.c In file included from libcore/ojluni/src/main/native/NativeThread.c:41: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ libcore/ojluni/src/main/native/NativeThread.c: In function 'NativeThread_current': libcore/ojluni/src/main/native/NativeThread.c:91:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 91 | return (jlong)pthread_self(); | ^ libcore/ojluni/src/main/native/NativeThread.c: In function 'NativeThread_signal': libcore/ojluni/src/main/native/NativeThread.c:102:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 102 | ret = pthread_kill((pthread_t)thread, INTERRUPT_SIGNAL); | ^ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/UnixFileSystem_md.c:39: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/ObjectStreamClass.c:27: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ art/tools/cpp-define-generator/globals.def: In function 'void AsmDefineHelperFor_OBJECT_ALIGNMENT_MASK_TOGGLED64()': art/tools/cpp-define-generator/asm_defines.cc:34:52: warning: promoted bitwise complement of an unsigned value is always nonzero [-Wsign-compare] 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ~~~~~~~^~~ art/tools/cpp-define-generator/globals.def:63:1: note: in expansion of macro 'ASM_DEFINE' 63 | ASM_DEFINE(OBJECT_ALIGNMENT_MASK_TOGGLED64, | ^~~~~~~~~~ art/tools/cpp-define-generator/globals.def: In function 'void AsmDefineHelperFor_OBJECT_ALIGNMENT_MASK_TOGGLED64()': art/tools/cpp-define-generator/asm_defines.cc:34:52: warning: promoted bitwise complement of an unsigned value is always nonzero [-Wsign-compare] 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ~~~~~~~^~~ art/tools/cpp-define-generator/globals.def:63:1: note: in expansion of macro 'ASM_DEFINE' 63 | ASM_DEFINE(OBJECT_ALIGNMENT_MASK_TOGGLED64, | ^~~~~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics host C: libopenjdk <= libcore/ojluni/src/main/native/net_util.c In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/ObjectOutputStream.c:27: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/ObjectInputStream.c:27: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/net_util_md.c In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/LinuxNativeDispatcher.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/Net.c In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/runtime_options.h:33, from art/dex2oat/dex2oat.cc:172: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | host C: libopenjdk <= libcore/ojluni/src/main/native/MappedByteBuffer.c cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/LinuxWatchService.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ At top level: cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics host C: libopenjdk <= libcore/ojluni/src/main/native/Inet6Address.c host C: libopenjdk <= libcore/ojluni/src/main/native/Inet4Address.c In file included from libcore/ojluni/src/main/native/LinuxWatchService.c:35: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/net_util.h:29, from libcore/ojluni/src/main/native/InetAddress.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics host C: libopenjdk <= libcore/ojluni/src/main/native/ServerSocketChannelImpl.c In file included from libcore/ojluni/src/main/native/Net.c:26: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/net_util.c:27: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/SocketInputStream.c In file included from libcore/ojluni/src/main/native/net_util_md.h:36, from libcore/ojluni/src/main/native/net_util.h:31: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/SocketOutputStream.c In file included from libcore/ojluni/src/main/native/net_util_md.h:36, from libcore/ojluni/src/main/native/net_util.h:31, from libcore/ojluni/src/main/native/net_util.c:29: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/tools/cpp-define-generator/art_method.def:18, from art/tools/cpp-define-generator/asm_defines.def:22: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/tools/cpp-define-generator/art_method.def:18, from art/tools/cpp-define-generator/asm_defines.def:22: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/Float.c In file included from art/libdexfile/dex/dex_file-inl.h:28, from art/dexlayout/dex_ir.h:30, from art/dexlayout/dex_writer.h:30: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/net_util_md.c:64: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/MappedByteBuffer.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/Double.c In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/Net.c:35: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28, from art/dexlayout/dex_ir.h:30, from art/dexlayout/dex_writer.h:30: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from libcore/ojluni/src/main/native/net_util_md.h:36, from libcore/ojluni/src/main/native/net_util.h:31, from libcore/ojluni/src/main/native/net_util_md.c:65: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/StrictMath.c In file included from libcore/ojluni/src/main/native/net_util_md.h:36, from libcore/ojluni/src/main/native/net_util.h:31, from libcore/ojluni/src/main/native/Net.c:38: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ At global scope: cc1plus: note: unrecognized command-line option '-Wno-extern-c-compat' may have been intended to silence earlier diagnostics host C: libopenjdk <= libcore/ojluni/src/main/native/Math.c In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/net_util.h:29, from libcore/ojluni/src/main/native/Inet4Address.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics host C: libopenjdk <= libcore/ojluni/src/main/native/ProcessEnvironment_md.c cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics host C: libopenjdk <= libcore/ojluni/src/main/native/System.c art/dexlayout/dex_ir.h:113:48: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 113 | template class Iterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:115:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 115 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:117:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:118:33: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 118 | using pointer = typename std::iterator::pointer; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:119:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 119 | using reference = typename std::iterator::reference; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from libcore/ojluni/src/main/native/net_util_md.h:36, from libcore/ojluni/src/main/native/net_util.h:31: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/SocketInputStream.c:32: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/net_util.h:29, from libcore/ojluni/src/main/native/ServerSocketChannelImpl.c:41: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/Runtime.c In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/net_util.h:29, from libcore/ojluni/src/main/native/Inet6Address.c:28: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ art/dexlayout/dex_ir.h:113:48: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 113 | template class Iterator : public std::iterator { | ^~~~~~~~ In file included from libcore/ojluni/src/main/native/net_util_md.h:36, from libcore/ojluni/src/main/native/net_util.h:31: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:115:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 115 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/SocketOutputStream.c:33: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ art/dexlayout/dex_ir.h:117:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:118:33: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 118 | using pointer = typename std::iterator::pointer; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:119:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 119 | using reference = typename std::iterator::reference; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C: libopenjdk <= libcore/ojluni/src/main/native/UNIXProcess_md.c In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/Float.c:27: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/dexlayout/dex_ir.h:113:48: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 113 | template class Iterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:115:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 115 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:117:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/dexlayout/dex_ir.h:118:33: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 118 | using pointer = typename std::iterator::pointer; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ art/dexlayout/dex_ir.h:119:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 119 | using reference = typename std::iterator::reference; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from libcore/ojluni/src/main/native/net_util_md.h:36, from libcore/ojluni/src/main/native/net_util.h:31, from libcore/ojluni/src/main/native/SocketInputStream.c:34: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics host C: libopenjdk <= libcore/ojluni/src/main/native/Bits.c In file included from libcore/ojluni/src/main/native/net_util_md.h:36, from libcore/ojluni/src/main/native/net_util.h:31: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from libcore/ojluni/src/main/native/net_util_md.h:36, from libcore/ojluni/src/main/native/net_util.h:31, from libcore/ojluni/src/main/native/SocketOutputStream.c:34: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ art/dexlayout/dex_ir.h:113:48: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 113 | template class Iterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:115:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 115 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:117:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:113:48: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 113 | template class Iterator : public std::iterator { | ^~~~~~~~ art/dexlayout/dex_ir.h:118:33: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 118 | using pointer = typename std::iterator::pointer; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics art/dexlayout/dex_ir.h:119:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 119 | using reference = typename std::iterator::reference; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:115:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 115 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:117:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:118:33: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 118 | using pointer = typename std::iterator::pointer; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:119:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 119 | using reference = typename std::iterator::reference; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ In file included from libcore/luni/src/main/native/libcore_icu_ICU.cpp:37: In function '_jstring* jniCreateString(JNIEnv*, const char16_t*, jsize)', inlined from 'void setStringField(JNIEnv*, jobject, const char*, UResourceBundle*, int)' at libcore/luni/src/main/native/libcore_icu_ICU.cpp:384:19: libnativehelper/include/nativehelper/JNIHelp.h:183:27: warning: 'chars' may be used uninitialized [-Wmaybe-uninitialized] 183 | return jniCreateString(&env->functions, reinterpret_cast(unicodeChars), len); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ libcore/luni/src/main/native/libcore_icu_ICU.cpp: In function 'void setStringField(JNIEnv*, jobject, const char*, UResourceBundle*, int)': libcore/luni/src/main/native/libcore_icu_ICU.cpp:367:16: note: 'chars' was declared here 367 | const UChar* chars; | ^~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics host SharedLib: libnativehelper (out/host/linux-x86/obj/lib/libnativehelper.so) host StaticLib: libfdlibm (out/host/linux-x86/obj/STATIC_LIBRARIES/libfdlibm_intermediates/libfdlibm.a) art/tools/cpp-define-generator/globals.def: In function 'void AsmDefineHelperFor_OBJECT_ALIGNMENT_MASK_TOGGLED64()': art/tools/cpp-define-generator/asm_defines.cc:34:52: warning: promoted bitwise complement of an unsigned value is always nonzero [-Wsign-compare] 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ~~~~~~~^~~ art/tools/cpp-define-generator/globals.def:63:1: note: in expansion of macro 'ASM_DEFINE' 63 | ASM_DEFINE(OBJECT_ALIGNMENT_MASK_TOGGLED64, | ^~~~~~~~~~ libcore/ojluni/src/main/native/System.c:32: warning: "_GNU_SOURCE" redefined 32 | #define _GNU_SOURCE | : note: this is the location of the previous definition host Executable: acp (out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp) host StaticLib: libelffile (out/host/linux-x86/obj/STATIC_LIBRARIES/libelffile_intermediates/libelffile.a) In file included from art/libdexfile/dex/dex_file-inl.h:28, from art/dexlayout/dex_ir.h:30, from art/dexlayout/dexlayout.h:35: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics libandroidfw/Idmap.cpp: In static member function 'static std::unique_ptr android::LoadedIdmap::Load(const android::StringPiece&)': libandroidfw/Idmap.cpp:175:19: warning: redundant move in return statement [-Wredundant-move] 175 | return std::move(loaded_idmap); | ~~~~~~~~~^~~~~~~~~~~~~~ libandroidfw/Idmap.cpp:175:19: note: remove 'std::move' call In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/Double.c:29: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/Runtime.c:40: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/System.c:40: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ In file included from libcore/ojluni/src/main/native/jvm_md.h:68, from libcore/ojluni/src/main/native/jvm.h:33, from libcore/ojluni/src/main/native/UNIXProcess_md.c:30: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include to [-Wcpp] 1 | #warning redirecting incorrect #include to | ^~~~~~~ art/dexlayout/dex_ir.h:113:48: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 113 | template class Iterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:115:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 115 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:117:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:118:33: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 118 | using pointer = typename std::iterator::pointer; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:119:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 119 | using reference = typename std::iterator::reference; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ Install: out/host/linux-x86/bin/acp cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics Install: out/host/linux-x86/lib64/liblog.so cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/arch/instruction_set.h_operator_out.cc cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/base/allocator.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/base/unix_file/fd_file.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_file.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_file_layout.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_instruction.h_operator_out.cc In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_instruction_utils.h_operator_out.cc art/dexlayout/dex_ir.h:113:48: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 113 | template class Iterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:115:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 115 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:117:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:118:33: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 118 | using pointer = typename std::iterator::pointer; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h:119:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 119 | using reference = typename std::iterator::reference; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/invoke_type.h_operator_out.cc art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/method_reference.h_operator_out.cc libandroidfw/Locale.cpp: In member function 'bool android::LocaleValue::InitFromBcp47TagImpl(const android::StringPiece&, char)': libandroidfw/Locale.cpp:160:9: warning: this statement may fall through [-Wimplicit-fallthrough=] 160 | if ('0' <= subtags[1][0] && subtags[1][0] <= '9') { | ^~ libandroidfw/Locale.cpp:167:7: note: here 167 | case 5: | ^~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/driver/compiler_options.h_operator_out.cc In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/tools/cpp-define-generator/art_method.def:18, from art/tools/cpp-define-generator/asm_defines.def:22: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/linker/linker_patch.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/optimizing/locations.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/optimizing/optimizing_compiler_stats.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/utils/arm/constants_arm.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/utils/mips/assembler_mips.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/utils/mips64/assembler_mips64.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/mterp_arm.S Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/base/callee_save_type.h_operator_out.cc cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/base/locks.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/class_loader_context.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/class_status.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/debugger.h_operator_out.cc In file included from art/runtime/mirror/class.h:24, from art/tools/cpp-define-generator/mirror_class.def:18, from art/tools/cpp-define-generator/asm_defines.def:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc_root.h_operator_out.cc In file included from art/runtime/mirror/class.h:24, from art/tools/cpp-define-generator/mirror_class.def:18, from art/tools/cpp-define-generator/asm_defines.def:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/allocator_type.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/allocator/rosalloc.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/collector_type.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/collector/gc_type.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/heap.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/space/region_space.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/space/space.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/weak_root_state.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/image.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/instrumentation.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/indirect_reference_table.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/jdwp_provider.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/jdwp/jdwp.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/jdwp/jdwp_constants.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/lock_word.h_operator_out.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/oat.h_operator_out.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/object_callbacks.h_operator_out.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/process_state.h_operator_out.cc art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/stack.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/suspend_reason.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread.h_operator_out.cc Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread_state.h_operator_out.cc cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/ti/agent.h_operator_out.cc art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/trace.h_operator_out.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/verifier/verifier_enums.h_operator_out.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/dex/dex_to_dex_compiler.h_operator_out.cc art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/driver/compiler_driver.h_operator_out.cc art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/linker/image_writer.h_operator_out.cc art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libcutils.so art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics Install: out/host/linux-x86/lib64/libutils.so In file included from art/tools/cpp-define-generator/mirror_dex_cache.def:18, from art/tools/cpp-define-generator/asm_defines.def:26: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/tools/cpp-define-generator/mirror_dex_cache.def:18, from art/tools/cpp-define-generator/asm_defines.def:26: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ Install: out/host/linux-x86/lib64/libunwind.so Install: out/host/linux-x86/lib64/libnativebridge.so Install: out/host/linux-x86/lib64/libsigchain.so art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ host Prebuilt: jarjar (out/host/common/obj/JAVA_LIBRARIES/jarjar_intermediates/javalib.jar) art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libnativehelper.so art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': art/tools/cpp-define-generator/mirror_dex_cache.def:25:1: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': art/tools/cpp-define-generator/mirror_dex_cache.def:25:1: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics host C++: libartbase <= art/libartbase/base/mem_map_unix.cc At global scope: cc1plus: note: unrecognized command-line option '-Wno-extern-c-compat' may have been intended to silence earlier diagnostics art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libartbase <= art/libartbase/arch/instruction_set.cc host C++: libartbase <= art/libartbase/base/allocator.cc host C++: libartbase <= art/libartbase/base/arena_allocator.cc host C++: libartbase <= art/libartbase/base/arena_bit_vector.cc In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ host C++: libartbase <= art/libartbase/base/bit_vector.cc art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ host C++: libartbase <= art/libartbase/base/enums.cc host C++: libartbase <= art/libartbase/base/file_magic.cc host C++: libartbase <= art/libartbase/base/file_utils.cc host C++: libartbase <= art/libartbase/base/hex_dump.cc libandroidfw/ApkAssets.cpp: In static member function 'static std::unique_ptr android::ApkAssets::LoadImpl(android::base::unique_fd, const std::string&, std::unique_ptr, std::unique_ptr, bool, bool)': libandroidfw/ApkAssets.cpp:134:21: warning: redundant move in return statement [-Wredundant-move] 134 | return std::move(loaded_apk); | ~~~~~~~~~^~~~~~~~~~~~ libandroidfw/ApkAssets.cpp:134:21: note: remove 'std::move' call host C++: libartbase <= art/libartbase/base/hiddenapi_flags.cc libandroidfw/ApkAssets.cpp:162:19: warning: redundant move in return statement [-Wredundant-move] 162 | return std::move(loaded_apk); | ~~~~~~~~~^~~~~~~~~~~~ libandroidfw/ApkAssets.cpp:162:19: note: remove 'std::move' call In file included from art/runtime/mirror/class.h:24, from art/tools/cpp-define-generator/mirror_class.def:18, from art/tools/cpp-define-generator/asm_defines.def:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libartbase <= art/libartbase/base/logging.cc host C++: libartbase <= art/libartbase/base/malloc_arena_pool.cc host C++: libartbase <= art/libartbase/base/membarrier.cc host C++: libartbase <= art/libartbase/base/memfd.cc In file included from art/libartbase/base/hex_dump.h:20, from art/libartbase/base/hex_dump.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libartbase <= art/libartbase/base/memory_region.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libartbase <= art/libartbase/base/mem_map.cc art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libartbase <= art/libartbase/base/os_linux.cc In file included from art/libartbase/arch/instruction_set.h:25, from art/libartbase/arch/instruction_set.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libartbase <= art/libartbase/base/runtime_debug.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libartbase <= art/libartbase/base/safe_copy.cc In file included from art/libartbase/base/membarrier.cc:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libartbase <= art/libartbase/base/scoped_arena_allocator.cc In file included from art/tools/cpp-define-generator/mirror_dex_cache.def:18, from art/tools/cpp-define-generator/asm_defines.def:26: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/libartbase/base/memfd.cc:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ host C++: libartbase <= art/libartbase/base/scoped_flock.cc art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libartbase <= art/libartbase/base/socket_peer_is_trusted.cc art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': art/tools/cpp-define-generator/mirror_dex_cache.def:25:1: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libartbase <= art/libartbase/base/time_utils.cc art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/mem_map.h:28, from art/libartbase/base/mem_map_unix.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libartbase <= art/libartbase/base/unix_file/fd_file.cc host C++: libartbase <= art/libartbase/base/unix_file/random_access_file_utils.cc art/tools/cpp-define-generator/rosalloc.def: In function 'void AsmDefineHelperFor_ROSALLOC_BRACKET_QUANTUM_SIZE_MASK_TOGGLED64()': art/tools/cpp-define-generator/asm_defines.cc:34:52: warning: promoted bitwise complement of an unsigned value is always nonzero [-Wsign-compare] 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ~~~~~~~^~~ art/tools/cpp-define-generator/rosalloc.def:25:1: note: in expansion of macro 'ASM_DEFINE' 25 | ASM_DEFINE(ROSALLOC_BRACKET_QUANTUM_SIZE_MASK_TOGGLED64, | ^~~~~~~~~~ art/tools/cpp-define-generator/rosalloc.def: In function 'void AsmDefineHelperFor_ROSALLOC_BRACKET_QUANTUM_SIZE_MASK_TOGGLED64()': art/tools/cpp-define-generator/asm_defines.cc:34:52: warning: promoted bitwise complement of an unsigned value is always nonzero [-Wsign-compare] 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ~~~~~~~^~~ art/tools/cpp-define-generator/rosalloc.def:25:1: note: in expansion of macro 'ASM_DEFINE' 25 | ASM_DEFINE(ROSALLOC_BRACKET_QUANTUM_SIZE_MASK_TOGGLED64, | ^~~~~~~~~~ host C++: libartbase <= art/libartbase/base/utils.cc art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ host C++: libartbase <= art/libartbase/base/zip_archive.cc art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libartbase <= out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/arch/instruction_set.h_operator_out.cc host C++: libartbase <= out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/base/allocator.h_operator_out.cc host C++: libartbase <= out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/base/unix_file/fd_file.h_operator_out.cc host C++: libdexfile <= art/libdexfile/dex/art_dex_file_loader.cc In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/libartbase/base/allocator.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libdexfile <= art/libdexfile/dex/compact_dex_file.cc host C++: libdexfile <= art/libdexfile/dex/compact_offset_table.cc In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_allocator-inl.h:20, from art/libartbase/base/arena_allocator.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libdexfile <= art/libdexfile/dex/descriptors_names.cc host C++: libdexfile <= art/libdexfile/dex/dex_file.cc host C++: libdexfile <= art/libdexfile/dex/dex_file_exception_helpers.cc In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/libartbase/base/arena_bit_vector.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libdexfile <= art/libdexfile/dex/dex_file_layout.cc In file included from art/libartbase/arch/instruction_set.h:25, from art/libartbase/base/file_utils.h:26, from art/libartbase/base/file_utils.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/unix_file/fd_file.h:24, from art/libartbase/base/file_magic.cc:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/mem_map.h:28, from art/libartbase/base/mem_map.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/libartbase/base/bit_vector.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libdexfile <= art/libdexfile/dex/dex_file_loader.cc In file included from art/libartbase/base/time_utils.h:26, from art/libartbase/base/time_utils.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/unix_file/fd_file.h:24, from art/libartbase/base/unix_file/fd_file.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/logging.h:22, from art/libartbase/base/logging.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/dumpable.h:22, from art/libartbase/base/hiddenapi_flags.h:26, from art/libartbase/base/hiddenapi_flags.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/hiddenapi_flags.h:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/scoped_flock.h:25, from art/libartbase/base/scoped_flock.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/unix_file/fd_file.h:24, from art/libartbase/base/scoped_flock.h:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/unix_file/fd_file.h:24, from art/libartbase/base/logging.cc:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics In file included from art/libartbase/base/memory_region.h:29, from art/libartbase/base/memory_region.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/malloc_arena_pool.h:22, from art/libartbase/base/malloc_arena_pool.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ In file included from art/libartbase/base/unix_file/fd_file.h:24, from art/libartbase/base/os_linux.cc:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ host C++: libdexfile <= art/libdexfile/dex/dex_file_tracking_registrar.cc art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ In file included from art/libartbase/arch/instruction_set.h:25, from out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/arch/instruction_set.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/tools/cpp-define-generator/rosalloc.def: In function 'void AsmDefineHelperFor_ROSALLOC_BRACKET_QUANTUM_SIZE_MASK_TOGGLED64()': art/tools/cpp-define-generator/asm_defines.cc:34:52: warning: promoted bitwise complement of an unsigned value is always nonzero [-Wsign-compare] 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ~~~~~~~^~~ art/tools/cpp-define-generator/rosalloc.def:25:1: note: in expansion of macro 'ASM_DEFINE' 25 | ASM_DEFINE(ROSALLOC_BRACKET_QUANTUM_SIZE_MASK_TOGGLED64, | ^~~~~~~~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/stl_tree.h:63, from /usr/include/c++/13.2.1/set:62, from art/libprofile/profile/profile_compilation_info.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ In file included from art/libdexfile/dex/class_accessor-inl.h:20, from art/dexlayout/dex_ir_builder.cc:25: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/unix_file/fd_file.h:24, from out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/base/unix_file/fd_file.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/scoped_arena_allocator.h:22, from art/libartbase/base/scoped_arena_allocator.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libandroidfw/LoadedArsc.cpp: In static member function 'static std::unique_ptr android::LoadedPackage::Load(const android::Chunk&, const android::LoadedIdmap*, bool, bool)': libandroidfw/LoadedArsc.cpp:695:19: warning: redundant move in return statement [-Wredundant-move] 695 | return std::move(loaded_package); | ~~~~~~~~~^~~~~~~~~~~~~~~~ libandroidfw/LoadedArsc.cpp:695:19: note: remove 'std::move' call In file included from art/libdexfile/dex/art_dex_file_loader.h:25, from art/libdexfile/dex/art_dex_file_loader.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libdexfile <= art/libdexfile/dex/dex_file_verifier.cc libandroidfw/LoadedArsc.cpp: In static member function 'static std::unique_ptr android::LoadedArsc::Load(const android::StringPiece&, const android::LoadedIdmap*, bool, bool)': libandroidfw/LoadedArsc.cpp:793:19: warning: redundant move in return statement [-Wredundant-move] 793 | return std::move(loaded_arsc); | ~~~~~~~~~^~~~~~~~~~~~~ libandroidfw/LoadedArsc.cpp:793:19: note: remove 'std::move' call art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ In file included from art/libartbase/base/mem_map.h:28, from art/libartbase/base/zip_archive.h:27, from art/libartbase/base/zip_archive.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libdexfile <= art/libdexfile/dex/dex_instruction.cc In file included from art/libartbase/base/utils.h:32, from art/libartbase/base/utils.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from system/core/include/ziparchive/zip_archive.h:25, from art/libartbase/base/zip_archive.cc:27: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from out/host/linux-x86/obj/SHARED_LIBRARIES/libartbase_intermediates/base/allocator.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ In file included from art/libartbase/base/unix_file/fd_file.h:24, from art/libartbase/base/zip_archive.cc:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ In file included from art/libdexfile/dex/class_accessor-inl.h:28: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libartbase/base/mem_map.h:28, from art/libdexfile/dex/art_dex_file_loader.cc:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_ALL_CALLEE_SAVES_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:22:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 22 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveAllCalleeSaves)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:22:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 22 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveAllCalleeSaves)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_EVERYTHING_FOR_CLINIT_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:24:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 24 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForClinit)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:24:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 24 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForClinit)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_EVERYTHING_FOR_SUSPEND_CHECK_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:26:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 26 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForSuspendCheck)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:26:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 26 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForSuspendCheck)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_EVERYTHING_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:28:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 28 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverything)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:28:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 28 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverything)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_REFS_AND_ARGS_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:30:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 30 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsAndArgs)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:30:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 30 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsAndArgs)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_REFS_ONLY_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:32:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 32 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsOnly)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:32:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 32 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsOnly)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_ALL_CALLEE_SAVES_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:22:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 22 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveAllCalleeSaves)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:22:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 22 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveAllCalleeSaves)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_EVERYTHING_FOR_CLINIT_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:24:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 24 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForClinit)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:24:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 24 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForClinit)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_EVERYTHING_FOR_SUSPEND_CHECK_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:26:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 26 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForSuspendCheck)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/compact_dex_file.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:26:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 26 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForSuspendCheck)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_EVERYTHING_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:28:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 28 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverything)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:28:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 28 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverything)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_REFS_AND_ARGS_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:30:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 30 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsAndArgs)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libdexfile <= art/libdexfile/dex/modifiers.cc art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:30:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 30 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsAndArgs)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_REFS_ONLY_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:32:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 32 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsOnly)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:32:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 32 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsOnly)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/libdexfile/dex/descriptors_names.h:22, from art/libdexfile/dex/descriptors_names.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libdexfile <= art/libdexfile/dex/primitive.cc In file included from art/libdexfile/dex/dex_instruction_iterator.h:24, from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/code_item_accessors-inl.h:20, from art/libdexfile/dex/dex_file_exception_helpers.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/leb128.h:26, from art/libdexfile/dex/compact_offset_table.cc:20: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/dex_file_loader.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/dex_file.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libdexfile <= art/libdexfile/dex/signature.cc In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/dex_file_layout.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libdexfile <= art/libdexfile/dex/standard_dex_file.cc cc1: note: unrecognized command-line option '-Wno-sometimes-uninitialized' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-constant-logical-operand' may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option '-Wno-parentheses-equality' may have been intended to silence earlier diagnostics art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:759:48: required from 'static constexpr art::ThreadOffset art::Thread::CardTableOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]' art/tools/cpp-define-generator/thread.def:21:1: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadFlagsOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:31:1: required from here art/runtime/thread.h:664:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 664 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:664:9: note: in expansion of macro 'OFFSETOF_MEMBER' 664 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThinLockIdOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:33:1: required from here art/runtime/thread.h:650:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 650 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:650:9: note: in expansion of macro 'OFFSETOF_MEMBER' 650 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::InterpreterCacheOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:35:1: required from here art/runtime/thread.h:1285:55: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 1285 | return ThreadOffset(OFFSETOF_MEMBER(Thread, interpreter_cache_)); art/runtime/thread.h:1285:39: note: in expansion of macro 'OFFSETOF_MEMBER' 1285 | return ThreadOffset(OFFSETOF_MEMBER(Thread, interpreter_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::IsGcMarkingOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:39:1: required from here art/runtime/thread.h:678:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 678 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:678:9: note: in expansion of macro 'OFFSETOF_MEMBER' 678 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::UseMterpOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:59:1: required from here art/runtime/thread.h:671:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 671 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:671:9: note: in expansion of macro 'OFFSETOF_MEMBER' 671 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ libandroidfw/AssetManager2.cpp: In member function 'void android::Theme::SetTo(const android::Theme&)': libandroidfw/AssetManager2.cpp:1379:30: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'unsigned int'} and 'const int' [-Wsign-compare] 1379 | for (size_t e = 0; e < type->entry_count; e++) { | ~~^~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:759:48: required from 'static constexpr art::ThreadOffset art::Thread::CardTableOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]' art/tools/cpp-define-generator/thread.def:21:1: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadFlagsOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:31:1: required from here art/runtime/thread.h:664:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 664 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:664:9: note: in expansion of macro 'OFFSETOF_MEMBER' 664 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThinLockIdOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:33:1: required from here art/runtime/thread.h:650:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 650 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:650:9: note: in expansion of macro 'OFFSETOF_MEMBER' 650 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::InterpreterCacheOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:35:1: required from here art/runtime/thread.h:1285:55: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 1285 | return ThreadOffset(OFFSETOF_MEMBER(Thread, interpreter_cache_)); art/runtime/thread.h:1285:39: note: in expansion of macro 'OFFSETOF_MEMBER' 1285 | return ThreadOffset(OFFSETOF_MEMBER(Thread, interpreter_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::IsGcMarkingOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:39:1: required from here art/runtime/thread.h:678:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 678 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:678:9: note: in expansion of macro 'OFFSETOF_MEMBER' 678 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libprofile/./profile/profile_compilation_info.h:23, from art/dexlayout/dex_visualize.cc:36: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::UseMterpOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:59:1: required from here art/runtime/thread.h:671:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 671 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:671:9: note: in expansion of macro 'OFFSETOF_MEMBER' 671 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ libandroidfw/AssetManager2.cpp: In member function 'void android::Theme::Dump() const': libandroidfw/AssetManager2.cpp:1488:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::array, 256>::size_type' {aka 'unsigned int'} [-Wsign-compare] 1488 | for (int p = 0; p < packages_.size(); p++) { | ~~^~~~~~~~~~~~~~~~~~ libandroidfw/AssetManager2.cpp:1494:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::array, 256>::size_type' {aka 'unsigned int'} [-Wsign-compare] 1494 | for (int t = 0; t < package->types.size(); t++) { | ~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/dex_file_tracking_registrar.h:23, from art/libdexfile/dex/dex_file_tracking_registrar.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from system/core/include/ziparchive/zip_archive.h:25, from art/libdexfile/dex/dex_file_loader.cc:26: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ host C++: libdexfile <= art/libdexfile/dex/type_lookup_table.cc host C++: libdexfile <= art/libdexfile/dex/utf.cc host C++: libdexfile <= out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_file.h_operator_out.cc In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libdexfile/dex/dex_file_verifier.h:23, from art/libdexfile/dex/dex_file_verifier.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/hash_set.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libdexfile <= out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_file_layout.h_operator_out.cc art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_ALL_CALLEE_SAVES_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:22:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 22 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveAllCalleeSaves)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:22:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 22 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveAllCalleeSaves)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_EVERYTHING_FOR_CLINIT_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:24:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 24 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForClinit)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:24:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 24 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForClinit)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_EVERYTHING_FOR_SUSPEND_CHECK_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:26:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 26 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForSuspendCheck)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:26:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 26 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForSuspendCheck)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_EVERYTHING_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:28:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 28 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverything)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:28:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 28 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverything)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_REFS_AND_ARGS_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:30:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 30 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsAndArgs)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:30:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 30 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsAndArgs)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def: In function 'void AsmDefineHelperFor_RUNTIME_SAVE_REFS_ONLY_METHOD_OFFSET()': art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:32: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:32:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 32 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsOnly)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/tools/cpp-define-generator/asm_defines.cc:34:46: note: in definition of macro 'ASM_DEFINE' 34 | :: "i" (static_cast(EXPR)), "i" ((EXPR) < 0 ? 1 : 0)); \ | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:32:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 32 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsOnly)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/utf.h:20, from art/libdexfile/dex/utf.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libandroidfw/ResourceTypes.cpp: In function 'android::LocaleParserState android::assignLocaleComponent(ResTable_config*, const char*, size_t, LocaleParserState)': libandroidfw/ResourceTypes.cpp:3089:12: warning: this statement may fall through [-Wimplicit-fallthrough=] 3089 | } | ^ host C++: libdexfile <= out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_instruction.h_operator_out.cc libandroidfw/ResourceTypes.cpp:3091:8: note: here 3091 | case 5: | ^~~~ In file included from art/libdexfile/dex/dex_instruction.h:23, from art/libdexfile/dex/dex_instruction-inl.h:20, from art/libdexfile/dex/dex_instruction.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/dex_instruction.cc:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/hash_map.h:22, from art/libdexfile/dex/dex_file_verifier.h:23, from art/dexlayout/dexlayout.cc:47: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/libdexfile/dex/primitive.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libandroidfw/ResourceTypes.cpp: In member function 'android::status_t android::DynamicRefTable::lookupResourceValue(android::Res_value*) const': libandroidfw/ResourceTypes.cpp:7024:26: warning: this statement may fall through [-Wimplicit-fallthrough=] 7024 | resolvedType = Res_value::TYPE_ATTRIBUTE; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ libandroidfw/ResourceTypes.cpp:7026:9: note: here 7026 | case Res_value::TYPE_REFERENCE: | ^~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libprofile/profile/profile_compilation_info.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/openjdkjvm/OpenjdkJvm.cc:43: art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/string.h:22, from art/runtime/mirror/string-inl.h:19: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:759:48: required from 'static constexpr art::ThreadOffset art::Thread::CardTableOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]' art/tools/cpp-define-generator/thread.def:21:1: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadFlagsOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:31:1: required from here art/runtime/thread.h:664:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 664 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:664:9: note: in expansion of macro 'OFFSETOF_MEMBER' 664 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThinLockIdOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:33:1: required from here art/runtime/thread.h:650:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 650 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:650:9: note: in expansion of macro 'OFFSETOF_MEMBER' 650 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::InterpreterCacheOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:35:1: required from here art/runtime/thread.h:1285:55: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 1285 | return ThreadOffset(OFFSETOF_MEMBER(Thread, interpreter_cache_)); art/runtime/thread.h:1285:39: note: in expansion of macro 'OFFSETOF_MEMBER' 1285 | return ThreadOffset(OFFSETOF_MEMBER(Thread, interpreter_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::IsGcMarkingOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:39:1: required from here art/runtime/thread.h:678:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 678 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:678:9: note: in expansion of macro 'OFFSETOF_MEMBER' 678 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::UseMterpOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:59:1: required from here art/runtime/thread.h:671:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 671 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:671:9: note: in expansion of macro 'OFFSETOF_MEMBER' 671 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/libdexfile/dex/signature-inl.h:20, from art/libdexfile/dex/signature.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/signature-inl.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/standard_dex_file.h:22, from art/libdexfile/dex/standard_dex_file.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_file_verifier.h:25: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/leb128.h:26, from art/libdexfile/dex/type_lookup_table.cc:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/forward_list.h:36, from /usr/include/c++/13.2.1/forward_list:40, from art/dex2oat/dex2oat.cc:102: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/type_lookup_table.cc:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' host C++: libdexfile <= out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_instruction_utils.h_operator_out.cc In file included from art/libdexfile/dex/dex_file.h:30, from out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_file.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libdexfile <= out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/invoke_type.h_operator_out.cc In file included from art/libdexfile/dex/dex_instruction.h:23, from out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_instruction.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ Install: out/host/linux-x86/framework/jarjar.jar host C++: libdexfile <= out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/method_reference.h_operator_out.cc host Executable: dalvikvm (out/host/linux-x86/obj/EXECUTABLES/dalvikvm_intermediates/dalvikvm) art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host SharedLib: libbase (out/host/linux-x86/obj/lib/libbase.so) art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libprofile/profile/profile_compilation_info.h:34: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/lib/gcc/armv7-alpine-linux-musleabihf/13.2.1/../../../../armv7-alpine-linux-musleabihf/bin/ld: /usr/lib/gcc/armv7-alpine-linux-musleabihf/13.2.1/../../../libc.so: warning: The fgetln() function cannot be safely ported, use getline(3) instead, as it is supported by GNU and POSIX.1-2008. art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ Install: out/host/linux-x86/bin/dalvikvm Install: out/host/linux-x86/lib64/libbase.so host SharedLib: libartpalette (out/host/linux-x86/obj/lib/libartpalette.so) In file included from art/libprofile/./profile/profile_compilation_info.h:34: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/type_reference.h:25, from art/libprofile/./profile/profile_compilation_info.h:35: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_instruction.h:23, from art/libdexfile/dex/dex_instruction_utils.h:20, from out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_instruction_utils.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ Install: out/host/linux-x86/lib64/libartpalette.so In file included from art/tools/cpp-define-generator/runtime.def:18, from art/tools/cpp-define-generator/asm_defines.def:30: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/tools/cpp-define-generator/runtime.def:18, from art/tools/cpp-define-generator/asm_defines.def:30: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/method_reference.h:22, from out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/method_reference.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/bit_vector.cc:17: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/iterator:61, from art/libartbase/base/bit_vector.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28, from art/libdexfile/dex/string_reference.h:24, from art/libdexfile/dex/type_reference.h:25, from art/libprofile/profile/profile_compilation_info.h:35: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/tools/cpp-define-generator/runtime.def:18, from art/tools/cpp-define-generator/asm_defines.def:30: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libartbase/base/unix_file/fd_file.cc: In member function 'bool unix_file::FdFile::Erase(bool)': art/libartbase/base/unix_file/fd_file.cc:556:7: warning: variable 'result' set but not used [-Wunused-but-set-variable] 556 | int result; | ^~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_level.h:22, from art/dex2oat/dex2oat_options.h:28: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/dex2oat/dex2oat_options.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host SharedLib: libziparchive (out/host/linux-x86/obj/lib/libziparchive.so) In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/openjdkjvm/OpenjdkJvm.cc:43: art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/string.h:22, from art/runtime/mirror/string-inl.h:19: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ Install: out/host/linux-x86/lib64/libziparchive.so art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libprofile/./profile/profile_compilation_info.h:34, from art/dexlayout/dexlayout.cc:53: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/type_reference.h:25, from art/libprofile/./profile/profile_compilation_info.h:35: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/libdexfile/dex/dex_file_layout.h:20, from art/libdexfile/dex/dex_file_layout.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/casts.h:27, from art/libdexfile/dex/compact_dex_file.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libdexfile/dex/dex_file_exception_helpers.h:20, from art/libdexfile/dex/dex_file_exception_helpers.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/dex2oat/dex2oat_options.h:29: art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'CompilerFilter' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:39:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 39 | COMPILER_OPTIONS_KEY (std::string, CompilerFilter) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:39:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 39 | COMPILER_OPTIONS_KEY (std::string, CompilerFilter) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'PIC' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:40:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 40 | COMPILER_OPTIONS_KEY (Unit, PIC) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:40:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 40 | COMPILER_OPTIONS_KEY (Unit, PIC) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'HugeMethodMaxThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:41:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 41 | COMPILER_OPTIONS_KEY (unsigned int, HugeMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:41:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 41 | COMPILER_OPTIONS_KEY (unsigned int, HugeMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'LargeMethodMaxThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:42:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 42 | COMPILER_OPTIONS_KEY (unsigned int, LargeMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:42:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 42 | COMPILER_OPTIONS_KEY (unsigned int, LargeMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'SmallMethodMaxThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:43:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 43 | COMPILER_OPTIONS_KEY (unsigned int, SmallMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:43:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 43 | COMPILER_OPTIONS_KEY (unsigned int, SmallMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'TinyMethodMaxThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:44:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 44 | COMPILER_OPTIONS_KEY (unsigned int, TinyMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:44:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 44 | COMPILER_OPTIONS_KEY (unsigned int, TinyMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'NumDexMethodsThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:45:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 45 | COMPILER_OPTIONS_KEY (unsigned int, NumDexMethodsThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:45:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 45 | COMPILER_OPTIONS_KEY (unsigned int, NumDexMethodsThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'InlineMaxCodeUnitsThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:46:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 46 | COMPILER_OPTIONS_KEY (unsigned int, InlineMaxCodeUnitsThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:46:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 46 | COMPILER_OPTIONS_KEY (unsigned int, InlineMaxCodeUnitsThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'GenerateDebugInfo' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:47:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 47 | COMPILER_OPTIONS_KEY (bool, GenerateDebugInfo) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:47:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 47 | COMPILER_OPTIONS_KEY (bool, GenerateDebugInfo) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'GenerateMiniDebugInfo' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:48:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 48 | COMPILER_OPTIONS_KEY (bool, GenerateMiniDebugInfo) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:48:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 48 | COMPILER_OPTIONS_KEY (bool, GenerateMiniDebugInfo) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'GenerateBuildID' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:49:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 49 | COMPILER_OPTIONS_KEY (bool, GenerateBuildID) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:49:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 49 | COMPILER_OPTIONS_KEY (bool, GenerateBuildID) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'Debuggable' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:50:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 50 | COMPILER_OPTIONS_KEY (Unit, Debuggable) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:50:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 50 | COMPILER_OPTIONS_KEY (Unit, Debuggable) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'Baseline' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:51:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 51 | COMPILER_OPTIONS_KEY (Unit, Baseline) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:51:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 51 | COMPILER_OPTIONS_KEY (Unit, Baseline) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'TopKProfileThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:52:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 52 | COMPILER_OPTIONS_KEY (double, TopKProfileThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:52:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 52 | COMPILER_OPTIONS_KEY (double, TopKProfileThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'AbortOnHardVerifierFailure' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:53:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 53 | COMPILER_OPTIONS_KEY (bool, AbortOnHardVerifierFailure) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:53:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 53 | COMPILER_OPTIONS_KEY (bool, AbortOnHardVerifierFailure) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'AbortOnSoftVerifierFailure' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:54:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 54 | COMPILER_OPTIONS_KEY (bool, AbortOnSoftVerifierFailure) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:54:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 54 | COMPILER_OPTIONS_KEY (bool, AbortOnSoftVerifierFailure) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'ResolveStartupConstStrings' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:55:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 55 | COMPILER_OPTIONS_KEY (bool, ResolveStartupConstStrings, false) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:55:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 55 | COMPILER_OPTIONS_KEY (bool, ResolveStartupConstStrings, false) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpInitFailures' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:56:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 56 | COMPILER_OPTIONS_KEY (std::string, DumpInitFailures) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:56:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 56 | COMPILER_OPTIONS_KEY (std::string, DumpInitFailures) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpCFG' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:57:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 57 | COMPILER_OPTIONS_KEY (std::string, DumpCFG) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:57:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 57 | COMPILER_OPTIONS_KEY (std::string, DumpCFG) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpCFGAppend' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:58:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 58 | COMPILER_OPTIONS_KEY (Unit, DumpCFGAppend) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:58:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 58 | COMPILER_OPTIONS_KEY (Unit, DumpCFGAppend) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'RegisterAllocationStrategy' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:60:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 60 | COMPILER_OPTIONS_KEY (std::string, RegisterAllocationStrategy) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:60:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 60 | COMPILER_OPTIONS_KEY (std::string, RegisterAllocationStrategy) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'VerboseMethods' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:61:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 61 | COMPILER_OPTIONS_KEY (ParseStringList<','>, VerboseMethods) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:61:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 61 | COMPILER_OPTIONS_KEY (ParseStringList<','>, VerboseMethods) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DeduplicateCode' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:62:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 62 | COMPILER_OPTIONS_KEY (bool, DeduplicateCode, true) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:62:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 62 | COMPILER_OPTIONS_KEY (bool, DeduplicateCode, true) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'CountHotnessInCompiledCode' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:63:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 63 | COMPILER_OPTIONS_KEY (Unit, CountHotnessInCompiledCode) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:63:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 63 | COMPILER_OPTIONS_KEY (Unit, CountHotnessInCompiledCode) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'CheckProfiledMethods' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:64:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 64 | COMPILER_OPTIONS_KEY (ProfileMethodsCheck, CheckProfiledMethods) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:64:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 64 | COMPILER_OPTIONS_KEY (ProfileMethodsCheck, CheckProfiledMethods) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpTimings' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:65:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 65 | COMPILER_OPTIONS_KEY (Unit, DumpTimings) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:65:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 65 | COMPILER_OPTIONS_KEY (Unit, DumpTimings) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpPassTimings' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:66:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 66 | COMPILER_OPTIONS_KEY (Unit, DumpPassTimings) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:66:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 66 | COMPILER_OPTIONS_KEY (Unit, DumpPassTimings) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpStats' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:67:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 67 | COMPILER_OPTIONS_KEY (Unit, DumpStats) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:67:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 67 | COMPILER_OPTIONS_KEY (Unit, DumpStats) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'MaxImageBlockSize' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:68:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 68 | COMPILER_OPTIONS_KEY (unsigned int, MaxImageBlockSize) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:68:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 68 | COMPILER_OPTIONS_KEY (unsigned int, MaxImageBlockSize) | ^~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/libdexfile/dex/dex_file.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/descriptors_names.cc:252:13: warning: 'always_inline' function might not be inlinable [-Wattributes] 252 | static bool IsValidPartOfMemberNameUtf8(const char** pUtf8Ptr) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/deque:62, from art/libdexfile/dex/dex_file_tracking_registrar.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ In file included from art/libartbase/base/variant_map.h:25, from art/dex2oat/dex2oat_options.h:25: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/libdexfile/dex/dex_file_loader.h:21, from art/libdexfile/dex/dex_file_loader.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/art_dex_file_loader.cc:31: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/libdexfile/dex/art_dex_file_loader.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/dex2oat/linker/oat_writer.h:33, from art/dex2oat/dex2oat_options.h:31: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ host SharedLib: libwolfssljni (out/host/linux-x86/obj/lib/libwolfssljni.so) art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_set.h:33, from /usr/include/c++/13.2.1/unordered_set:41, from art/libdexfile/dex/dex_file_verifier.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/libdexfile/dex/signature.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/utils.cc: In function 'int art::{anonymous}::CacheFlush(uintptr_t, uintptr_t)': art/libartbase/base/utils.cc:89:22: warning: invalid conversion from 'uintptr_t' {aka 'unsigned int'} to 'void*' [-fpermissive] 89 | int r = cacheflush(start, limit, kCacheFlushFlags); | ^~~~~ | | | uintptr_t {aka unsigned int} In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/libartbase/base/utils.cc:65:55: note: initializing argument 1 of 'int cacheflush(void*, int, int)' 65 | extern "C" __attribute__((weak)) int cacheflush(void *addr, int len, int op) | ~~~~~~^~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/libdexfile/dex/dex_file.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libartbase/base/utils.cc: In function 'bool art::{anonymous}::TouchAndFlushCacheLinesWithinPage(uintptr_t, uintptr_t, size_t)': art/libartbase/base/utils.cc:100:20: warning: variable 'v' set but not used [-Wunused-but-set-variable] 100 | volatile uint8_t v = 0; | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/code_item_accessors-inl.h:20, from art/libdexfile/dex/compact_dex_file.cc:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28, from art/libdexfile/dex/string_reference.h:24, from art/dex2oat/linker/oat_writer.h:34: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ Install: out/host/linux-x86/lib64/libwolfssljni.so art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/dex_file.h_operator_out.cc:1: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/dexlayout/dexlayout.cc: In lambda function: art/dexlayout/dexlayout.cc:1101:54: warning: declaration of 'uint32_t idx' shadows a parameter [-Wshadow] 1101 | [this](uint32_t idx) { | ~~~~~~~~~^~~ art/dexlayout/dexlayout.cc:1075:35: note: shadowed declaration is here 1075 | void DexLayout::DumpCode(uint32_t idx, | ~~~~~~~~~^~~ art/dexlayout/dexlayout.cc: In lambda function: art/dexlayout/dexlayout.cc:1133:51: warning: declaration of 'uint32_t idx' shadows a parameter [-Wshadow] 1133 | [this](uint32_t idx) { | ~~~~~~~~~^~~ art/dexlayout/dexlayout.cc:1075:35: note: shadowed declaration is here 1075 | void DexLayout::DumpCode(uint32_t idx, | ~~~~~~~~~^~~ art/dexlayout/dexlayout.cc: In lambda function: art/dexlayout/dexlayout.cc:1136:51: warning: declaration of 'uint32_t idx' shadows a parameter [-Wshadow] 1136 | [this](uint32_t idx) { | ~~~~~~~~~^~~ art/dexlayout/dexlayout.cc:1075:35: note: shadowed declaration is here 1075 | void DexLayout::DumpCode(uint32_t idx, | ~~~~~~~~~^~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/libdexfile/dex/class_accessor-inl.h:20, from art/libdexfile/dex/dex_file_tracking_registrar.cc:33: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/dex2oat/linker/oat_writer.h:35: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/libdexfile/dex/dex_file_verifier.h:25: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/dex2oat/linker/oat_writer.h:37: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libdexfile/dex/dex_file_verifier.h:23, from art/libdexfile/dex/dex_file_loader.cc:24: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libprofile/profile/profile_compilation_info.cc: In member function 'bool art::ProfileCompilationInfo::ReadInlineCache(SafeBuffer&, uint8_t, const art::SafeMap&, InlineCacheMap*, std::string*)': art/libprofile/profile/profile_compilation_info.cc:849:33: warning: passing 'uint8_t' {aka 'unsigned char'} chooses 'int' over 'long unsigned int' [-Wsign-promo] 849 | *error += std::to_string(dex_profile_index) + " " + std::to_string(number_of_dex_files); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ art/libprofile/profile/profile_compilation_info.cc:849:33: warning: in call to 'std::string std::__cxx11::to_string(int)' [-Wsign-promo] art/libprofile/profile/profile_compilation_info.cc:849:33: warning: passing 'uint8_t' {aka 'unsigned char'} chooses 'int' over 'long int' [-Wsign-promo] art/libprofile/profile/profile_compilation_info.cc:849:33: warning: in call to 'std::string std::__cxx11::to_string(int)' [-Wsign-promo] art/libprofile/profile/profile_compilation_info.cc:849:33: warning: passing 'uint8_t' {aka 'unsigned char'} chooses 'int' over 'unsigned int' [-Wsign-promo] art/libprofile/profile/profile_compilation_info.cc:849:33: warning: in call to 'std::string std::__cxx11::to_string(int)' [-Wsign-promo] art/libprofile/profile/profile_compilation_info.cc:849:75: warning: passing 'uint8_t' {aka 'unsigned char'} chooses 'int' over 'long unsigned int' [-Wsign-promo] 849 | *error += std::to_string(dex_profile_index) + " " + std::to_string(number_of_dex_files); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ art/libprofile/profile/profile_compilation_info.cc:849:75: warning: in call to 'std::string std::__cxx11::to_string(int)' [-Wsign-promo] art/libprofile/profile/profile_compilation_info.cc:849:75: warning: passing 'uint8_t' {aka 'unsigned char'} chooses 'int' over 'long int' [-Wsign-promo] art/libprofile/profile/profile_compilation_info.cc:849:75: warning: in call to 'std::string std::__cxx11::to_string(int)' [-Wsign-promo] art/libprofile/profile/profile_compilation_info.cc:849:75: warning: passing 'uint8_t' {aka 'unsigned char'} chooses 'int' over 'unsigned int' [-Wsign-promo] art/libprofile/profile/profile_compilation_info.cc:849:75: warning: in call to 'std::string std::__cxx11::to_string(int)' [-Wsign-promo] In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libdexfile/dex/type_lookup_table.h:20, from art/libdexfile/dex/type_lookup_table.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file_verifier.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libdexfile/dex/dex_file_verifier.h:23, from art/libdexfile/dex/art_dex_file_loader.cc:33: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/libprofile/profile/profile_compilation_info.cc: In member function 'bool art::ProfileCompilationInfo::ReadMethods(SafeBuffer&, uint8_t, const ProfileLineHeader&, const art::SafeMap&, std::string*)': art/libprofile/profile/profile_compilation_info.cc:877:12: warning: enum constant in boolean context [-Wint-in-bool-context] 877 | return kProfileLoadBadData; | ^~~~~~~~~~~~~~~~~~~ art/libprofile/profile/profile_compilation_info.cc: In member function 'bool art::ProfileCompilationInfo::ReadClasses(SafeBuffer&, const ProfileLineHeader&, std::string*)': art/libprofile/profile/profile_compilation_info.cc:916:12: warning: enum constant in boolean context [-Wint-in-bool-context] 916 | return kProfileLoadBadData; | ^~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/libdexfile/dex/class_accessor-inl.h:20, from art/libdexfile/dex/dex_file.cc:35: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ target Generated: libart-compiler <= out/host/linux-x86/gen/SHARED_LIBRARIES/libart-compiler_intermediates/asm_defines.S art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ target Generated: libart <= out/host/linux-x86/gen/SHARED_LIBRARIES/libart_intermediates/asm_defines.S art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/libdexfile/dex/dex_file_verifier.h:25: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libdexfile_intermediates/dex/method_reference.h_operator_out.cc:1: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/libdexfile/dex/dex_file_verifier.h:25: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/asm_defines.h In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/code_item_accessors-inl.h:20, from art/libdexfile/dex/standard_dex_file.cc:21: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ Copy: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/asm_defines.h art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ host C++: libart-compiler <= art/compiler/jni/quick/arm/calling_convention_arm.cc art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/code_generator_arm_vixl.cc host C++: libart-compiler <= art/compiler/optimizing/code_generator_vector_arm_vixl.cc host C++: libart-compiler <= art/compiler/optimizing/instruction_simplifier_arm.cc host C++: libart-compiler <= art/compiler/optimizing/instruction_simplifier_shared.cc In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libdexfile/dex/dex_instruction.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/intrinsics_arm_vixl.cc host C++: libart-compiler <= art/compiler/optimizing/nodes_shared.cc host C++: libart-compiler <= art/compiler/optimizing/scheduler_arm.cc host C++: libart-compiler <= art/compiler/utils/arm/assembler_arm_vixl.cc host C++: libart-compiler <= art/compiler/utils/arm/constants_arm.cc host C++: libart-compiler <= art/compiler/utils/arm/jni_macro_assembler_arm_vixl.cc host C++: libart-compiler <= art/compiler/utils/arm/managed_register_arm.cc host C++: libart-compiler <= art/compiler/compiled_method.cc host C++: libart-compiler <= art/compiler/debug/elf_debug_writer.cc host C++: libart-compiler <= art/compiler/dex/inline_method_analyser.cc host C++: libart-compiler <= art/compiler/dex/verified_method.cc host C++: libart-compiler <= art/compiler/dex/verification_results.cc host C++: libart-compiler <= art/compiler/driver/compiled_method_storage.cc In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/optimizing/code_generator.h:20, from art/compiler/optimizing/code_generator_arm_vixl.h:21, from art/compiler/optimizing/code_generator_arm_vixl.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/driver/compiler_options.cc In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/optimizing/code_generator.h:20, from art/compiler/optimizing/code_generator_arm_vixl.h:21, from art/compiler/optimizing/code_generator_vector_arm_vixl.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/driver/dex_compilation_unit.cc In file included from art/compiler/dex/inline_method_analyser.h:20, from art/compiler/dex/inline_method_analyser.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/jit/jit_compiler.cc art/dex2oat/dex2oat_options.def: At global scope: art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'CompactDexLevel' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:37:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 37 | DEX2OAT_OPTIONS_KEY (CompactDexLevel, CompactDexLevel) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:37:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 37 | DEX2OAT_OPTIONS_KEY (CompactDexLevel, CompactDexLevel) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.def:37:54: warning: declaration of 'art::Dex2oatArgumentMap::Key art::Dex2oatArgumentMap::CompactDexLevel' changes meaning of 'CompactDexLevel' [-Wchanges-meaning] 37 | DEX2OAT_OPTIONS_KEY (CompactDexLevel, CompactDexLevel) | ^~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:70: note: in definition of macro 'DEX2OAT_OPTIONS_KEY' 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~ art/dex2oat/dex2oat_options.def:37:22: note: used here to mean 'enum class art::CompactDexLevel' 37 | DEX2OAT_OPTIONS_KEY (CompactDexLevel, CompactDexLevel) | ^~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:63: note: in definition of macro 'DEX2OAT_OPTIONS_KEY' 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~ art/libdexfile/dex/compact_dex_level.h:27:12: note: declared here 27 | enum class CompactDexLevel { | ^~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DexFiles' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:38:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 38 | DEX2OAT_OPTIONS_KEY (std::vector, DexFiles) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:38:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 38 | DEX2OAT_OPTIONS_KEY (std::vector, DexFiles) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DexLocations' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:39:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 39 | DEX2OAT_OPTIONS_KEY (std::vector, DexLocations) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:39:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 39 | DEX2OAT_OPTIONS_KEY (std::vector, DexLocations) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ZipFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:40:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 40 | DEX2OAT_OPTIONS_KEY (int, ZipFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:40:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 40 | DEX2OAT_OPTIONS_KEY (int, ZipFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ZipLocation' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:41:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 41 | DEX2OAT_OPTIONS_KEY (std::string, ZipLocation) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:41:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 41 | DEX2OAT_OPTIONS_KEY (std::string, ZipLocation) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'InputVdexFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:42:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 42 | DEX2OAT_OPTIONS_KEY (int, InputVdexFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:42:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 42 | DEX2OAT_OPTIONS_KEY (int, InputVdexFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'InputVdex' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:43:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 43 | DEX2OAT_OPTIONS_KEY (std::string, InputVdex) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:43:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 43 | DEX2OAT_OPTIONS_KEY (std::string, InputVdex) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'OutputVdexFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:44:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 44 | DEX2OAT_OPTIONS_KEY (int, OutputVdexFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:44:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 44 | DEX2OAT_OPTIONS_KEY (int, OutputVdexFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'OutputVdex' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:45:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 45 | DEX2OAT_OPTIONS_KEY (std::string, OutputVdex) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:45:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 45 | DEX2OAT_OPTIONS_KEY (std::string, OutputVdex) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DmFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:46:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 46 | DEX2OAT_OPTIONS_KEY (int, DmFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:46:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 46 | DEX2OAT_OPTIONS_KEY (int, DmFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DmFile' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:47:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 47 | DEX2OAT_OPTIONS_KEY (std::string, DmFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:47:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 47 | DEX2OAT_OPTIONS_KEY (std::string, DmFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'OatFiles' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:48:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 48 | DEX2OAT_OPTIONS_KEY (std::vector, OatFiles) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:48:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 48 | DEX2OAT_OPTIONS_KEY (std::vector, OatFiles) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'OatSymbols' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:49:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 49 | DEX2OAT_OPTIONS_KEY (std::vector, OatSymbols) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:49:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 49 | DEX2OAT_OPTIONS_KEY (std::vector, OatSymbols) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Strip' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:50:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 50 | DEX2OAT_OPTIONS_KEY (Unit, Strip) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:50:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 50 | DEX2OAT_OPTIONS_KEY (Unit, Strip) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'OatFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:51:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 51 | DEX2OAT_OPTIONS_KEY (int, OatFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:51:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 51 | DEX2OAT_OPTIONS_KEY (int, OatFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'OatLocation' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:52:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 52 | DEX2OAT_OPTIONS_KEY (std::string, OatLocation) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:52:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 52 | DEX2OAT_OPTIONS_KEY (std::string, OatLocation) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Watchdog' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:53:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 53 | DEX2OAT_OPTIONS_KEY (bool, Watchdog) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:53:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 53 | DEX2OAT_OPTIONS_KEY (bool, Watchdog) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'WatchdogTimeout' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:54:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 54 | DEX2OAT_OPTIONS_KEY (int, WatchdogTimeout) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:54:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 54 | DEX2OAT_OPTIONS_KEY (int, WatchdogTimeout) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Threads' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:55:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 55 | DEX2OAT_OPTIONS_KEY (unsigned int, Threads) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:55:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 55 | DEX2OAT_OPTIONS_KEY (unsigned int, Threads) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ImageFilenames' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:56:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 56 | DEX2OAT_OPTIONS_KEY (std::vector, ImageFilenames) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:56:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 56 | DEX2OAT_OPTIONS_KEY (std::vector, ImageFilenames) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ImageClasses' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:57:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 57 | DEX2OAT_OPTIONS_KEY (std::string, ImageClasses) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:57:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 57 | DEX2OAT_OPTIONS_KEY (std::string, ImageClasses) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ImageClassesZip' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:58:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 58 | DEX2OAT_OPTIONS_KEY (std::string, ImageClassesZip) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:58:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 58 | DEX2OAT_OPTIONS_KEY (std::string, ImageClassesZip) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ImageFormat' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:59:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 59 | DEX2OAT_OPTIONS_KEY (ImageHeader::StorageMode, ImageFormat) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:59:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 59 | DEX2OAT_OPTIONS_KEY (ImageHeader::StorageMode, ImageFormat) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Passes' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:60:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 60 | DEX2OAT_OPTIONS_KEY (std::string, Passes) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:60:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 60 | DEX2OAT_OPTIONS_KEY (std::string, Passes) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Base' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:61:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 61 | DEX2OAT_OPTIONS_KEY (std::string, Base) // TODO: Hex string parsing. | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:61:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 61 | DEX2OAT_OPTIONS_KEY (std::string, Base) // TODO: Hex string parsing. | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'BootImage' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:62:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 62 | DEX2OAT_OPTIONS_KEY (std::string, BootImage) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:62:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 62 | DEX2OAT_OPTIONS_KEY (std::string, BootImage) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'AndroidRoot' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:63:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 63 | DEX2OAT_OPTIONS_KEY (std::string, AndroidRoot) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:63:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 63 | DEX2OAT_OPTIONS_KEY (std::string, AndroidRoot) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'TargetInstructionSet' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:64:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 64 | DEX2OAT_OPTIONS_KEY (InstructionSet, TargetInstructionSet) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:64:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 64 | DEX2OAT_OPTIONS_KEY (InstructionSet, TargetInstructionSet) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'TargetInstructionSetVariant' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:65:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 65 | DEX2OAT_OPTIONS_KEY (std::string, TargetInstructionSetVariant) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:65:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 65 | DEX2OAT_OPTIONS_KEY (std::string, TargetInstructionSetVariant) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'TargetInstructionSetFeatures' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:66:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 66 | DEX2OAT_OPTIONS_KEY (std::string, TargetInstructionSetFeatures) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:66:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 66 | DEX2OAT_OPTIONS_KEY (std::string, TargetInstructionSetFeatures) | ^~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/jit/jit_logger.cc art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Backend' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:67:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 67 | DEX2OAT_OPTIONS_KEY (Compiler::Kind, Backend) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:67:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 67 | DEX2OAT_OPTIONS_KEY (Compiler::Kind, Backend) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Profile' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:68:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 68 | DEX2OAT_OPTIONS_KEY (std::string, Profile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:68:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 68 | DEX2OAT_OPTIONS_KEY (std::string, Profile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ProfileFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:69:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 69 | DEX2OAT_OPTIONS_KEY (int, ProfileFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:69:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 69 | DEX2OAT_OPTIONS_KEY (int, ProfileFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Host' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:70:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 70 | DEX2OAT_OPTIONS_KEY (Unit, Host) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:70:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 70 | DEX2OAT_OPTIONS_KEY (Unit, Host) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DumpTiming' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:71:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 71 | DEX2OAT_OPTIONS_KEY (Unit, DumpTiming) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:71:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 71 | DEX2OAT_OPTIONS_KEY (Unit, DumpTiming) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DumpPasses' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:72:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 72 | DEX2OAT_OPTIONS_KEY (Unit, DumpPasses) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:72:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 72 | DEX2OAT_OPTIONS_KEY (Unit, DumpPasses) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DumpStats' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:73:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 73 | DEX2OAT_OPTIONS_KEY (Unit, DumpStats) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:73:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 73 | DEX2OAT_OPTIONS_KEY (Unit, DumpStats) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'CopyDexFiles' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:74:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 74 | DEX2OAT_OPTIONS_KEY (linker::CopyOption, CopyDexFiles) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:74:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 74 | DEX2OAT_OPTIONS_KEY (linker::CopyOption, CopyDexFiles) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'AvoidStoringInvocation' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:75:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 75 | DEX2OAT_OPTIONS_KEY (Unit, AvoidStoringInvocation) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:75:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 75 | DEX2OAT_OPTIONS_KEY (Unit, AvoidStoringInvocation) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'SwapFile' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:76:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 76 | DEX2OAT_OPTIONS_KEY (std::string, SwapFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:76:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 76 | DEX2OAT_OPTIONS_KEY (std::string, SwapFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'SwapFileFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:77:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 77 | DEX2OAT_OPTIONS_KEY (int, SwapFileFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:77:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 77 | DEX2OAT_OPTIONS_KEY (int, SwapFileFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'SwapDexSizeThreshold' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:78:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 78 | DEX2OAT_OPTIONS_KEY (unsigned int, SwapDexSizeThreshold) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:78:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 78 | DEX2OAT_OPTIONS_KEY (unsigned int, SwapDexSizeThreshold) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'SwapDexCountThreshold' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:79:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 79 | DEX2OAT_OPTIONS_KEY (unsigned int, SwapDexCountThreshold) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:79:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 79 | DEX2OAT_OPTIONS_KEY (unsigned int, SwapDexCountThreshold) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'VeryLargeAppThreshold' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:80:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 80 | DEX2OAT_OPTIONS_KEY (unsigned int, VeryLargeAppThreshold) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:80:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 80 | DEX2OAT_OPTIONS_KEY (unsigned int, VeryLargeAppThreshold) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'AppImageFile' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:81:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 81 | DEX2OAT_OPTIONS_KEY (std::string, AppImageFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:81:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 81 | DEX2OAT_OPTIONS_KEY (std::string, AppImageFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'AppImageFileFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:82:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 82 | DEX2OAT_OPTIONS_KEY (int, AppImageFileFd) | ^~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/optimizing/code_generator.h:20, from art/compiler/optimizing/intrinsics.h:20, from art/compiler/optimizing/intrinsics_arm_vixl.h:20, from art/compiler/optimizing/intrinsics_arm_vixl.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:82:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 82 | DEX2OAT_OPTIONS_KEY (int, AppImageFileFd) | ^~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'MultiImage' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:83:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 83 | DEX2OAT_OPTIONS_KEY (Unit, MultiImage) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:83:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 83 | DEX2OAT_OPTIONS_KEY (Unit, MultiImage) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'NoInlineFrom' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:84:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 84 | DEX2OAT_OPTIONS_KEY (std::string, NoInlineFrom) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:84:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 84 | DEX2OAT_OPTIONS_KEY (std::string, NoInlineFrom) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ForceDeterminism' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:85:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 85 | DEX2OAT_OPTIONS_KEY (Unit, ForceDeterminism) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:85:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 85 | DEX2OAT_OPTIONS_KEY (Unit, ForceDeterminism) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ClasspathDir' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:86:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 86 | DEX2OAT_OPTIONS_KEY (std::string, ClasspathDir) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:86:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 86 | DEX2OAT_OPTIONS_KEY (std::string, ClasspathDir) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'InvocationFile' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:87:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 87 | DEX2OAT_OPTIONS_KEY (std::string, InvocationFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:87:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 87 | DEX2OAT_OPTIONS_KEY (std::string, InvocationFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ClassLoaderContext' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:88:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 88 | DEX2OAT_OPTIONS_KEY (std::string, ClassLoaderContext) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:88:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 88 | DEX2OAT_OPTIONS_KEY (std::string, ClassLoaderContext) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ClassLoaderContextFds' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:89:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 89 | DEX2OAT_OPTIONS_KEY (std::string, ClassLoaderContextFds) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:89:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 89 | DEX2OAT_OPTIONS_KEY (std::string, ClassLoaderContextFds) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'StoredClassLoaderContext' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:90:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 90 | DEX2OAT_OPTIONS_KEY (std::string, StoredClassLoaderContext) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:90:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 90 | DEX2OAT_OPTIONS_KEY (std::string, StoredClassLoaderContext) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DirtyImageObjects' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:91:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 91 | DEX2OAT_OPTIONS_KEY (std::string, DirtyImageObjects) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:91:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 91 | DEX2OAT_OPTIONS_KEY (std::string, DirtyImageObjects) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'RuntimeOptions' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:92:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 92 | DEX2OAT_OPTIONS_KEY (std::vector, RuntimeOptions) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:92:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 92 | DEX2OAT_OPTIONS_KEY (std::vector, RuntimeOptions) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'CompilationReason' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:93:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 93 | DEX2OAT_OPTIONS_KEY (std::string, CompilationReason) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:93:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 93 | DEX2OAT_OPTIONS_KEY (std::string, CompilationReason) | ^~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/jni/quick/calling_convention.cc host C++: libart-compiler <= art/compiler/jni/quick/jni_compiler.cc In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/optimizing/code_generator.h:20, from art/compiler/optimizing/code_generator_arm_vixl.h:21, from art/compiler/optimizing/scheduler_arm.h:20, from art/compiler/optimizing/scheduler_arm.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ host C++: libart-compiler <= art/compiler/optimizing/block_builder.cc host C++: libart-compiler <= art/compiler/optimizing/bounds_check_elimination.cc host C++: libart-compiler <= art/compiler/optimizing/builder.cc host C++: libart-compiler <= art/compiler/optimizing/cha_guard_optimization.cc host C++: libart-compiler <= art/compiler/optimizing/code_generator.cc art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/code_generator_utils.cc host C++: libart-compiler <= art/compiler/optimizing/code_sinking.cc host C++: libart-compiler <= art/compiler/optimizing/constant_folding.cc host C++: libart-compiler <= art/compiler/optimizing/constructor_fence_redundancy_elimination.cc In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/data_type.cc In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/compiled_method.h:24, from art/compiler/compiled_method.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/optimizing/dead_code_elimination.cc In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/compiler/jni/quick/calling_convention.h:20, from art/compiler/jni/quick/arm/calling_convention_arm.h:21, from art/compiler/jni/quick/arm/calling_convention_arm.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/arch/instruction_set_features.h:24, from art/compiler/debug/elf_debug_writer.h:22, from art/compiler/debug/elf_debug_writer.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/optimizing/escape.cc In file included from art/libdexfile/dex/class_accessor-inl.h:28: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/compiler/jni/quick/calling_convention.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/optimizing/graph_checker.cc In file included from art/compiler/driver/compiler_options.h:26, from art/compiler/driver/compiler_options_map-inl.h:30, from art/dex2oat/dex2oat_options.cc:22: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/graph_visualizer.cc /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/optimizing/code_generator.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/optimizing/gvn.cc In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/instruction_simplifier_arm.h:20, from art/compiler/optimizing/instruction_simplifier_arm.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/optimizing/code_generator.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/optimizing/induction_var_analysis.cc art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/induction_var_range.cc art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/optimizing/code_generator.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/optimizing/code_generator.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/utils/arm/assembler_arm_vixl.h:22, from art/compiler/utils/arm/assembler_arm_vixl.cc:20: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/optimizing/inliner.cc In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/jni/quick/jni_compiler.h:22, from art/compiler/jni/quick/jni_compiler.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/class_accessor-inl.h:28: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/instruction_simplifier_shared.h:20, from art/compiler/optimizing/instruction_simplifier_shared.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/compiler/utils/managed_register.h:23, from art/compiler/utils/arm/managed_register_arm.h:23, from art/compiler/utils/arm/managed_register_arm.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/optimizing/code_generator.h:20, from art/compiler/optimizing/code_generator.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/compiler/dex/inline_method_analyser.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/compiler/driver/compiler_options.h:26, from art/compiler/driver/compiler_options.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/compiler/debug/elf_debug_writer.h:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/compiler/dex/verified_method.h:22, from art/compiler/dex/verified_method.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/utils/arm/jni_macro_assembler_arm_vixl.h:22, from art/compiler/utils/arm/jni_macro_assembler_arm_vixl.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/hash_set.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/optimizing/instruction_builder.cc In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/compiler/utils/swap_space.h:30, from art/compiler/driver/compiled_method_storage.h:28, from art/compiler/compiled_method.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/jni/quick/calling_convention.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/nodes_shared.cc:20: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/dex/verification_results.h:24, from art/compiler/dex/verification_results.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/class_accessor-inl.h:28, from art/libdexfile/dex/dex_file_verifier.cc:26: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/compiler/jit/jit_compiler.h:20, from art/compiler/jit/jit_compiler.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/compiler/dex/verification_results.h:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/driver/compiled_method_storage.h:26, from art/compiler/driver/compiled_method_storage.cc:20: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/handle_scope-inl.h:25, from art/compiler/jni/quick/arm/calling_convention_arm.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libelffile/elf/elf_utils.h:22, from art/libelffile/elf/elf_builder.h:29, from art/compiler/debug/elf_debug_writer.h:28: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/compiler/utils/swap_space.h:30, from art/compiler/driver/compiled_method_storage.h:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/optimizing/instruction_simplifier.cc In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/compiler/driver/dex_compilation_unit.h:22, from art/compiler/driver/dex_compilation_unit.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/compiler/jni/quick/arm/calling_convention_arm.cc:335:5: warning: multi-line comment [-Wcomment] 335 | // /\ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/compiler/jit/jit_logger.h:22, from art/compiler/jit/jit_logger.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_instruction_iterator.h:24, from art/libdexfile/dex/code_item_accessors.h:24, from art/compiler/driver/dex_compilation_unit.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/optimizing/graph_visualizer.h:22, from art/compiler/optimizing/graph_visualizer.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libcore/luni/src/main/native/libcore_io_Linux.cpp: In function '_jobjectArray* Linux_getifaddrs(JNIEnv*, jobject)': libcore/luni/src/main/native/libcore_io_Linux.cpp:1599:35: warning: 'addr' may be used uninitialized [-Wmaybe-uninitialized] 1599 | jobject o = env->NewObject(JniConstants::structIfaddrs, ctor, name, flags, addr, netmask, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1600 | broad, hwaddr); | ~~~~~~~~~~~~~~ libcore/luni/src/main/native/libcore_io_Linux.cpp:1548:17: note: 'addr' was declared here 1548 | jobject addr, netmask, broad; | ^~~~ libcore/luni/src/main/native/libcore_io_Linux.cpp:1599:35: warning: 'netmask' may be used uninitialized [-Wmaybe-uninitialized] 1599 | jobject o = env->NewObject(JniConstants::structIfaddrs, ctor, name, flags, addr, netmask, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1600 | broad, hwaddr); | ~~~~~~~~~~~~~~ libcore/luni/src/main/native/libcore_io_Linux.cpp:1548:23: note: 'netmask' was declared here 1548 | jobject addr, netmask, broad; | ^~~~~~~ libcore/luni/src/main/native/libcore_io_Linux.cpp:1599:35: warning: 'broad' may be used uninitialized [-Wmaybe-uninitialized] 1599 | jobject o = env->NewObject(JniConstants::structIfaddrs, ctor, name, flags, addr, netmask, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1600 | broad, hwaddr); | ~~~~~~~~~~~~~~ libcore/luni/src/main/native/libcore_io_Linux.cpp:1548:32: note: 'broad' was declared here 1548 | jobject addr, netmask, broad; | ^~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/scoped_arena_allocator.h:22, from art/compiler/optimizing/block_builder.h:20, from art/compiler/optimizing/block_builder.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/compiler/jni/quick/calling_convention.h:20, from art/compiler/jni/quick/calling_convention.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/primitive.h:25, from art/compiler/jni/quick/calling_convention.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/optimizing/intrinsic_objects.cc In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/compiler/optimizing/block_builder.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/compiler/optimizing/optimization.h:20, from art/compiler/optimizing/bounds_check_elimination.h:20, from art/compiler/optimizing/bounds_check_elimination.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/compiler/optimizing/builder.h:20, from art/compiler/optimizing/builder.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_instruction_iterator.h:24, from art/libdexfile/dex/code_item_accessors.h:24, from art/compiler/optimizing/builder.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37, from art/compiler/jni/quick/jni_compiler.cc:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/code_generator.h:34: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/code_generator.h:34: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/compiler/optimizing/optimization.h:20, from art/compiler/optimizing/cha_guard_optimization.h:20, from art/compiler/optimizing/cha_guard_optimization.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C++: libart-compiler <= art/compiler/optimizing/intrinsics.cc In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/optimizing/code_generator.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file_verifier.cc: In member function 'art::dex::TypeIndex art::DexFileVerifier::FindFirstClassDataDefiner(const uint8_t*, bool*)': art/libdexfile/dex/dex_file_verifier.cc:164:23: warning: unnecessary parentheses in declaration of 'field' [-Wparentheses] 164 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2126:5: note: in expansion of macro 'LOAD_FIELD' 2126 | LOAD_FIELD(field, read_field.GetIndex(), "first_class_data_definer field_id", | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:164:23: note: remove parentheses 164 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2126:5: note: in expansion of macro 'LOAD_FIELD' 2126 | LOAD_FIELD(field, read_field.GetIndex(), "first_class_data_definer field_id", | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:157:24: warning: unnecessary parentheses in declaration of 'method' [-Wparentheses] 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2134:5: note: in expansion of macro 'LOAD_METHOD' 2134 | LOAD_METHOD(method, read_method.GetIndex(), "first_class_data_definer method_id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:157:24: note: remove parentheses 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2134:5: note: in expansion of macro 'LOAD_METHOD' 2134 | LOAD_METHOD(method, read_method.GetIndex(), "first_class_data_definer method_id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc: In member function 'art::dex::TypeIndex art::DexFileVerifier::FindFirstAnnotationsDirectoryDefiner(const uint8_t*, bool*)': art/libdexfile/dex/dex_file_verifier.cc:164:23: warning: unnecessary parentheses in declaration of 'field' [-Wparentheses] 164 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2150:5: note: in expansion of macro 'LOAD_FIELD' 2150 | LOAD_FIELD(field, field_items[0].field_idx_, "first_annotations_dir_definer field_id", | ^~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/graph_checker.h:22, from art/compiler/optimizing/graph_checker.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file_verifier.cc:164:23: note: remove parentheses 164 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2150:5: note: in expansion of macro 'LOAD_FIELD' 2150 | LOAD_FIELD(field, field_items[0].field_idx_, "first_annotations_dir_definer field_id", | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:157:24: warning: unnecessary parentheses in declaration of 'method' [-Wparentheses] 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2157:5: note: in expansion of macro 'LOAD_METHOD' 2157 | LOAD_METHOD(method, method_items[0].method_idx_, "first_annotations_dir_definer method id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:157:24: note: remove parentheses 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2157:5: note: in expansion of macro 'LOAD_METHOD' 2157 | LOAD_METHOD(method, method_items[0].method_idx_, "first_annotations_dir_definer method id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:157:24: warning: unnecessary parentheses in declaration of 'method' [-Wparentheses] 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2164:5: note: in expansion of macro 'LOAD_METHOD' 2164 | LOAD_METHOD(method, parameter_items[0].method_idx_, "first_annotations_dir_definer method id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:157:24: note: remove parentheses 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2164:5: note: in expansion of macro 'LOAD_METHOD' 2164 | LOAD_METHOD(method, parameter_items[0].method_idx_, "first_annotations_dir_definer method id", | ^~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/licm.cc art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckInterTypeIdItem()': art/libdexfile/dex/dex_file_verifier.cc:143:15: warning: unnecessary parentheses in declaration of 'descriptor' [-Wparentheses] 143 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2198:3: note: in expansion of macro 'LOAD_STRING' 2198 | LOAD_STRING(descriptor, item->descriptor_idx_, "inter_type_id_item descriptor_idx") | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:143:15: note: remove parentheses 143 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2198:3: note: in expansion of macro 'LOAD_STRING' 2198 | LOAD_STRING(descriptor, item->descriptor_idx_, "inter_type_id_item descriptor_idx") | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckInterProtoIdItem()': art/libdexfile/dex/dex_file_verifier.cc:143:15: warning: unnecessary parentheses in declaration of 'shorty' [-Wparentheses] 143 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2224:3: note: in expansion of macro 'LOAD_STRING' 2224 | LOAD_STRING(shorty, item->shorty_idx_, "inter_proto_id_item shorty_idx") | ^~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/code_generator.h:34: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/libdexfile/dex/dex_file_verifier.cc:143:15: note: remove parentheses 143 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2224:3: note: in expansion of macro 'LOAD_STRING' 2224 | LOAD_STRING(shorty, item->shorty_idx_, "inter_proto_id_item shorty_idx") | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:150:15: warning: unnecessary parentheses in declaration of 'return_type' [-Wparentheses] 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2238:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2238 | LOAD_STRING_BY_TYPE(return_type, item->return_type_idx_, "inter_proto_id_item return_type_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:150:15: note: remove parentheses 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2238:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2238 | LOAD_STRING_BY_TYPE(return_type, item->return_type_idx_, "inter_proto_id_item return_type_idx") | ^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/code_generator.h:34: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26, from art/compiler/optimizing/optimization.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckInterFieldIdItem()': art/libdexfile/dex/dex_file_verifier.cc:150:15: warning: unnecessary parentheses in declaration of 'class_descriptor' [-Wparentheses] 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2306:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2306 | LOAD_STRING_BY_TYPE(class_descriptor, item->class_idx_, "inter_field_id_item class_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:150:15: note: remove parentheses 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2306:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2306 | LOAD_STRING_BY_TYPE(class_descriptor, item->class_idx_, "inter_field_id_item class_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:150:15: warning: unnecessary parentheses in declaration of 'type_descriptor' [-Wparentheses] 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2313:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2313 | LOAD_STRING_BY_TYPE(type_descriptor, item->type_idx_, "inter_field_id_item type_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:150:15: note: remove parentheses 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2313:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2313 | LOAD_STRING_BY_TYPE(type_descriptor, item->type_idx_, "inter_field_id_item type_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:143:15: warning: unnecessary parentheses in declaration of 'descriptor' [-Wparentheses] 143 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2320:3: note: in expansion of macro 'LOAD_STRING' 2320 | LOAD_STRING(descriptor, item->name_idx_, "inter_field_id_item name_idx") | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:143:15: note: remove parentheses 143 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2320:3: note: in expansion of macro 'LOAD_STRING' 2320 | LOAD_STRING(descriptor, item->name_idx_, "inter_field_id_item name_idx") | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckInterMethodIdItem()': art/libdexfile/dex/dex_file_verifier.cc:150:15: warning: unnecessary parentheses in declaration of 'class_descriptor' [-Wparentheses] 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2353:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2353 | LOAD_STRING_BY_TYPE(class_descriptor, item->class_idx_, "inter_method_id_item class_idx") | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:150:15: note: remove parentheses 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2353:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2353 | LOAD_STRING_BY_TYPE(class_descriptor, item->class_idx_, "inter_method_id_item class_idx") | ^~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/linear_order.cc art/libdexfile/dex/dex_file_verifier.cc:143:15: warning: unnecessary parentheses in declaration of 'descriptor' [-Wparentheses] 143 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2361:3: note: in expansion of macro 'LOAD_STRING' 2361 | LOAD_STRING(descriptor, item->name_idx_, "inter_method_id_item name_idx") | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:143:15: note: remove parentheses 143 | const char* (var) = CheckLoadStringByIdx(idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2361:3: note: in expansion of macro 'LOAD_STRING' 2361 | LOAD_STRING(descriptor, item->name_idx_, "inter_method_id_item name_idx") | ^~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/load_store_analysis.cc In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/compiler/optimizing/optimization.h:20, from art/compiler/optimizing/constructor_fence_redundancy_elimination.h:20, from art/compiler/optimizing/constructor_fence_redundancy_elimination.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/code_generator_utils.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckInterClassDefItem()': art/libdexfile/dex/dex_file_verifier.cc:150:15: warning: unnecessary parentheses in declaration of 'class_descriptor' [-Wparentheses] 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2418:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2418 | LOAD_STRING_BY_TYPE(class_descriptor, item->class_idx_, "inter_class_def_item class_idx") | ^~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file_verifier.cc:150:15: note: remove parentheses 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2418:3: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2418 | LOAD_STRING_BY_TYPE(class_descriptor, item->class_idx_, "inter_class_def_item class_idx") | ^~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/code_sinking.h:20, from art/compiler/optimizing/code_sinking.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file_verifier.cc:150:15: warning: unnecessary parentheses in declaration of 'superclass_descriptor' [-Wparentheses] 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2474:5: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2474 | LOAD_STRING_BY_TYPE(superclass_descriptor, item->superclass_idx_, | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:150:15: note: remove parentheses 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2474:5: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2474 | LOAD_STRING_BY_TYPE(superclass_descriptor, item->superclass_idx_, | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:150:15: warning: unnecessary parentheses in declaration of 'inf_descriptor' [-Wparentheses] 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2515:7: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2515 | LOAD_STRING_BY_TYPE(inf_descriptor, interfaces->GetTypeItem(i).type_idx_, | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:150:15: note: remove parentheses 150 | const char* (var) = CheckLoadStringByTypeIdx(type_idx, error); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2515:7: note: in expansion of macro 'LOAD_STRING_BY_TYPE' 2515 | LOAD_STRING_BY_TYPE(inf_descriptor, interfaces->GetTypeItem(i).type_idx_, | ^~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/optimizing/graph_visualizer.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckInterMethodHandleItem()': art/libdexfile/dex/dex_file_verifier.cc:164:23: warning: unnecessary parentheses in declaration of 'field' [-Wparentheses] 164 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2649:7: note: in expansion of macro 'LOAD_FIELD' 2649 | LOAD_FIELD(field, index, "method_handle_item field_idx", return false); | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:164:23: note: remove parentheses 164 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2649:7: note: in expansion of macro 'LOAD_FIELD' 2649 | LOAD_FIELD(field, index, "method_handle_item field_idx", return false); | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:157:24: warning: unnecessary parentheses in declaration of 'method' [-Wparentheses] 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2657:7: note: in expansion of macro 'LOAD_METHOD' 2657 | LOAD_METHOD(method, index, "method_handle_item method_idx", return false); | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:157:24: note: remove parentheses 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2657:7: note: in expansion of macro 'LOAD_METHOD' 2657 | LOAD_METHOD(method, index, "method_handle_item method_idx", return false); | ^~~~~~~~~~~ In file included from art/compiler/utils/arm/assembler_arm_vixl.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/compiler/driver/compiled_method_storage.cc:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckInterClassDataItem()': art/libdexfile/dex/dex_file_verifier.cc:164:23: warning: unnecessary parentheses in declaration of 'field' [-Wparentheses] 164 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2722:5: note: in expansion of macro 'LOAD_FIELD' 2722 | LOAD_FIELD(field, read_field.GetIndex(), "inter_class_data_item field_id", return false) | ^~~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/compiler/dex/verification_results.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/libdexfile/dex/dex_file_verifier.cc:164:23: note: remove parentheses 164 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2722:5: note: in expansion of macro 'LOAD_FIELD' 2722 | LOAD_FIELD(field, read_field.GetIndex(), "inter_class_data_item field_id", return false) | ^~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26, from art/compiler/optimizing/optimization.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file_verifier.cc:157:24: warning: unnecessary parentheses in declaration of 'method' [-Wparentheses] 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2735:5: note: in expansion of macro 'LOAD_METHOD' 2735 | LOAD_METHOD(method, it->GetIndex(), "inter_class_data_item method_id", return false) | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:157:24: note: remove parentheses 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2735:5: note: in expansion of macro 'LOAD_METHOD' 2735 | LOAD_METHOD(method, it->GetIndex(), "inter_class_data_item method_id", return false) | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckInterAnnotationsDirectoryItem()': art/libdexfile/dex/dex_file_verifier.cc:164:23: warning: unnecessary parentheses in declaration of 'field' [-Wparentheses] 164 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2765:5: note: in expansion of macro 'LOAD_FIELD' 2765 | LOAD_FIELD(field, field_item->field_idx_, "inter_annotations_directory_item field_id", | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:164:23: note: remove parentheses 164 | const dex::FieldId* (var) = CheckLoadFieldId(idx, fmt); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2765:5: note: in expansion of macro 'LOAD_FIELD' 2765 | LOAD_FIELD(field, field_item->field_idx_, "inter_annotations_directory_item field_id", | ^~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:157:24: warning: unnecessary parentheses in declaration of 'method' [-Wparentheses] 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2782:5: note: in expansion of macro 'LOAD_METHOD' 2782 | LOAD_METHOD(method, method_item->method_idx_, "inter_annotations_directory_item method_id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:157:24: note: remove parentheses 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2782:5: note: in expansion of macro 'LOAD_METHOD' 2782 | LOAD_METHOD(method, method_item->method_idx_, "inter_annotations_directory_item method_id", | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:157:24: warning: unnecessary parentheses in declaration of 'parameter_method' [-Wparentheses] 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2799:5: note: in expansion of macro 'LOAD_METHOD' 2799 | LOAD_METHOD(parameter_method, parameter_item->method_idx_, | ^~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:157:24: note: remove parentheses 157 | const dex::MethodId* (var) = CheckLoadMethodId(idx, error_string); \ | ^~~~~ art/libdexfile/dex/dex_file_verifier.cc:2799:5: note: in expansion of macro 'LOAD_METHOD' 2799 | LOAD_METHOD(parameter_method, parameter_item->method_idx_, | ^~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/compiler/dex/inline_method_analyser.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26, from art/compiler/optimizing/graph_checker.h:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/jni/quick/calling_convention.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/dead_code_elimination.h:20, from art/compiler/optimizing/dead_code_elimination.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/escape.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/memory_tool.h:20, from art/dex2oat/dex2oat.cc:100: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26, from art/compiler/optimizing/optimization.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/constant_folding.h:20, from art/compiler/optimizing/constant_folding.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/compiler/dex/verification_results.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/compiler/optimizing/optimization.h:20, from art/compiler/optimizing/inliner.h:22, from art/compiler/optimizing/inliner.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/induction_var_analysis.h:22, from art/compiler/optimizing/induction_var_range.h:20, from art/compiler/optimizing/induction_var_range.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/utils/arm/jni_macro_assembler_arm_vixl.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/compiler/jit/jit_compiler.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/cmdline/cmdline_types.h:35, from art/cmdline/detail/cmdline_parse_argument_detail.h:31, from art/cmdline/cmdline_parser.h:23, from art/compiler/driver/compiler_options.cc:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/induction_var_analysis.h:22, from art/compiler/optimizing/induction_var_analysis.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/gvn.h:20, from art/compiler/optimizing/gvn.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/compiler/driver/dex_compilation_unit.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/jni/quick/calling_convention.h:25, from art/compiler/jni/quick/jni_compiler.cc:33: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/block_builder.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/compiler/debug/elf_debug_info_writer.h:24, from art/compiler/debug/elf_debug_writer.cc:27: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/verifier/verifier_deps.h:30, from art/runtime/verifier/reg_type-inl.h:26, from art/compiler/dex/verified_method.cc:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26, from art/compiler/optimizing/optimization.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/scoped_arena_allocator.h:22, from art/compiler/optimizing/instruction_builder.h:21, from art/compiler/optimizing/instruction_builder.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/builder.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/compiler/jit/jit_logger.cc:20: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/optimizing/code_generator.h:20, from art/compiler/optimizing/intrinsics.h:20, from art/compiler/optimizing/intrinsics.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/compiler/optimizing/instruction_builder.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/class_root.h:20, from art/runtime/verifier/reg_type_cache-inl.h:21, from art/runtime/verifier/register_line-inl.h:25, from art/compiler/dex/verified_method.cc:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29, from art/compiler/driver/compiler_options.cc:36: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/code_generator.h:34: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/optimization.h:21, from art/compiler/optimizing/bounds_check_elimination.h:20, from art/compiler/optimizing/graph_visualizer.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/compiler/optimizing/instruction_simplifier_shared.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/instruction_simplifier.h:20, from art/compiler/optimizing/instruction_simplifier.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/compiler/optimizing/intrinsic_objects.h:22, from art/compiler/optimizing/intrinsic_objects.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/optimizing/load_store_elimination.cc In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/compiler/optimizing/scheduler_arm.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/instruction_builder.h:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/optimizing/code_generator.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/linear_order.h:22, from art/compiler/optimizing/linear_order.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file_verifier.cc: At global scope: art/libdexfile/dex/dex_file_verifier.cc:954:6: warning: 'always_inline' function might not be inlinable [-Wattributes] 954 | bool DexFileVerifier::CheckOrder(const char* type_descr, | ^~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/locations.cc In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/load_store_analysis.h:21, from art/compiler/optimizing/load_store_analysis.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_instruction.cc: In member function 'std::string art::Instruction::DumpString(const art::DexFile*) const': art/libdexfile/dex/dex_instruction.cc:218:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 218 | } | ^ art/libdexfile/dex/dex_instruction.cc:220:9: note: here 220 | case CHECK_CAST: | ^~~~ art/libdexfile/dex/dex_instruction.cc:228:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 228 | } | ^ art/libdexfile/dex/dex_instruction.cc:230:9: note: here 230 | case SGET: | ^~~~ art/libdexfile/dex/dex_instruction.cc:242:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | } | ^ art/libdexfile/dex/dex_instruction.cc:244:9: note: here 244 | case SPUT: | ^~~~ art/libdexfile/dex/dex_instruction.cc:256:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 256 | } | ^ art/libdexfile/dex/dex_instruction.cc:258:9: note: here 258 | default: | ^~~~~~~ art/libdexfile/dex/dex_instruction.cc:282:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 282 | } | ^ art/libdexfile/dex/dex_instruction.cc:284:9: note: here 284 | case IGET_QUICK: | ^~~~ art/libdexfile/dex/dex_instruction.cc:291:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 291 | } | ^ art/libdexfile/dex/dex_instruction.cc:293:9: note: here 293 | case IPUT: | ^~~~ art/libdexfile/dex/dex_instruction.cc:305:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 305 | } | ^ art/libdexfile/dex/dex_instruction.cc:307:9: note: here 307 | case IPUT_QUICK: | ^~~~ art/libdexfile/dex/dex_instruction.cc:314:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 314 | } | ^ art/libdexfile/dex/dex_instruction.cc:316:9: note: here 316 | case INSTANCE_OF: | ^~~~ art/libdexfile/dex/dex_instruction.cc:323:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 323 | } | ^ art/libdexfile/dex/dex_instruction.cc:325:9: note: here 325 | case NEW_ARRAY: | ^~~~ art/libdexfile/dex/dex_instruction.cc:332:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 332 | } | ^ art/libdexfile/dex/dex_instruction.cc:334:9: note: here 334 | default: | ^~~~~~~ art/libdexfile/dex/dex_instruction.cc:400:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 400 | } | ^ art/libdexfile/dex/dex_instruction.cc:402:9: note: here 402 | case INVOKE_VIRTUAL_QUICK: | ^~~~ art/libdexfile/dex/dex_instruction.cc:409:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 409 | } | ^ art/libdexfile/dex/dex_instruction.cc:411:9: note: here 411 | case INVOKE_CUSTOM: | ^~~~ art/libdexfile/dex/dex_instruction.cc:418:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 418 | } | ^ art/libdexfile/dex/dex_instruction.cc:420:9: note: here 420 | default: | ^~~~~~~ art/libdexfile/dex/dex_instruction.cc:442:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 442 | } | ^ art/libdexfile/dex/dex_instruction.cc:444:9: note: here 444 | case INVOKE_VIRTUAL_RANGE_QUICK: | ^~~~ art/libdexfile/dex/dex_instruction.cc:450:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 450 | } | ^ art/libdexfile/dex/dex_instruction.cc:452:9: note: here 452 | case INVOKE_CUSTOM_RANGE: | ^~~~ art/libdexfile/dex/dex_instruction.cc:458:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 458 | } | ^ art/libdexfile/dex/dex_instruction.cc:460:9: note: here 460 | default: | ^~~~~~~ art/libdexfile/dex/dex_instruction.cc:502:9: warning: this statement may fall through [-Wimplicit-fallthrough=] 502 | } | ^ art/libdexfile/dex/dex_instruction.cc:504:9: note: here 504 | default: { | ^~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/licm.h:20, from art/compiler/optimizing/licm.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckShortyDescriptorMatch(char, const char*, bool)': art/libdexfile/dex/dex_file_verifier.cc:188:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 188 | if (UNLIKELY(!is_return_type)) { | ^~ art/libdexfile/dex/dex_file_verifier.cc:193:5: note: here 193 | case 'B': | ^~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/compiler/optimizing/code_generator_vector_arm_vixl.cc:18: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/compiler/optimizing/builder.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/libdexfile/dex/dex_instruction-inl.h: In member function 'uint32_t art::Instruction::GetVarArgs(uint32_t*, uint16_t) const': art/libdexfile/dex/dex_instruction-inl.h:537:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 537 | arg[4] = InstA(inst_data); | ~~~~~~~^~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:539:5: note: here 539 | case 4: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:540:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 540 | arg[3] = (regList >> 12) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:542:5: note: here 542 | case 3: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:543:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 543 | arg[2] = (regList >> 8) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:545:5: note: here 545 | case 2: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:546:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 546 | arg[1] = (regList >> 4) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:548:5: note: here 548 | case 1: | ^~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart-compiler <= art/compiler/optimizing/loop_analysis.cc In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/compiler/optimizing/intrinsics_arm_vixl.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libelffile/elf/elf_utils.h:22, from art/libelffile/elf/elf_builder.h:29, from art/compiler/debug/elf_debug_writer.h:28, from art/compiler/jit/jit_compiler.cc:30: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/compiler/optimizing/code_generator_arm_vixl.cc:35: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/compiler/optimizing/graph_checker.cc:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/compiler/jit/jit_compiler.cc:33: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/compiler/optimizing/intrinsic_objects.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C++: libart-compiler <= art/compiler/optimizing/loop_optimization.cc art/compiler/optimizing/dead_code_elimination.cc:211:1: warning: multi-line comment [-Wcomment] 211 | // / \ | ^ art/compiler/optimizing/dead_code_elimination.cc:220:1: warning: multi-line comment [-Wcomment] 220 | // / \ | ^ art/compiler/optimizing/dead_code_elimination.cc:294:1: warning: multi-line comment [-Wcomment] 294 | // / \ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/jit/jit.h:20, from art/compiler/jit/jit_logger.cc:23: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/compiler/optimizing/instruction_simplifier_arm.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/code_generator.h:34: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/compiler/optimizing/inliner.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/compiler/optimizing/optimization.h:20, from art/compiler/optimizing/load_store_elimination.h:20, from art/compiler/optimizing/load_store_elimination.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/compiler/optimizing/reference_type_propagation.h:21, from art/compiler/optimizing/graph_visualizer.cc:36: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/compiler/optimizing/instruction_builder.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26, from art/compiler/optimizing/optimization.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/compiler/optimizing/code_generator.cc:57: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/optimizing/locations.h:20, from art/compiler/optimizing/locations.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/compiler/optimizing/instruction_simplifier.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/arch/mips/instruction_set_features_mips.h:20, from art/dex2oat/dex2oat.cc:120: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/length_prefixed_array.h:26, from art/compiler/driver/compiled_method_storage.h:25: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/compiler/compiled_method.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/loop_analysis.h:20, from art/compiler/optimizing/loop_analysis.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/cmdline/cmdline_parse_result.h:21: art/cmdline/detail/cmdline_parser_detail.h: In instantiation of 'std::string art::detail::ToStringAny(const T&, typename std::enable_if::value>::type*) [with T = art::Compiler::Kind; std::string = std::__cxx11::basic_string; typename std::enable_if::value>::type = void]': art/cmdline/cmdline_parser.h:180:35: required from 'art::CmdlineParser::Builder& art::CmdlineParser::ArgumentBuilder::IntoKey(const MapKey&) [with TArg = art::Compiler::Kind; TVariantMap = art::Dex2oatArgumentMap; TVariantMapKey = art::Dex2oatArgumentMapKey; MapKey = art::Dex2oatArgumentMapKey]' art/dex2oat/dex2oat_options.cc:216:19: required from here art/cmdline/detail/cmdline_parser_detail.h:95:10: warning: passing 'art::Compiler::Kind' chooses 'int' over 'long unsigned int' [-Wsign-promo] 95 | stream << value; | ~~~~~~~^~~~~~~~ art/cmdline/detail/cmdline_parser_detail.h:95:10: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/cmdline/detail/cmdline_parser_detail.h:95:10: warning: passing 'art::Compiler::Kind' chooses 'int' over 'long int' [-Wsign-promo] art/cmdline/detail/cmdline_parser_detail.h:95:10: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/cmdline/detail/cmdline_parser_detail.h:95:10: warning: passing 'art::Compiler::Kind' chooses 'int' over 'unsigned int' [-Wsign-promo] art/cmdline/detail/cmdline_parser_detail.h:95:10: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/compiler/optimizing/intrinsics.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/jit/jit.h:20, from art/compiler/optimizing/inliner.cc:35: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/nodes.cc In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/code_generator.h:34, from art/compiler/optimizing/locations.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/optimization.cc libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/scoped_arena_allocator.h:22, from art/compiler/optimizing/loop_optimization.h:20, from art/compiler/optimizing/loop_optimization.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/compiler/optimizing/loop_optimization.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/libartbase/base/data_hash.h: In member function 'size_t art::DataHash::operator()(const Container&) const [with Container = std::__cxx11::basic_string]': art/libartbase/base/data_hash.h:77:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 77 | k1 ^= tail[2] << 16; | ~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:79:9: note: here 79 | case 2: | ^~~~ art/libartbase/base/data_hash.h:80:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 80 | k1 ^= tail[1] << 8; | ~~~^~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:82:9: note: here 82 | case 1: | ^~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/induction_var_analysis.h:22, from art/compiler/optimizing/induction_var_range.h:20, from art/compiler/optimizing/loop_optimization.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/length_prefixed_array.h:26, from art/compiler/driver/compiled_method_storage.h:25: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/driver/compiled_method_storage.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/dexlayout/dexlayout.cc:48: art/libdexfile/dex/dex_instruction-inl.h: In member function 'uint32_t art::Instruction::GetVarArgs(uint32_t*, uint16_t) const': art/libdexfile/dex/dex_instruction-inl.h:537:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 537 | arg[4] = InstA(inst_data); | ~~~~~~~^~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:539:5: note: here 539 | case 4: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:540:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 540 | arg[3] = (regList >> 12) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:542:5: note: here 542 | case 3: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:543:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 543 | arg[2] = (regList >> 8) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:545:5: note: here 545 | case 2: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:546:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 546 | arg[1] = (regList >> 4) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:548:5: note: here 548 | case 1: | ^~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/nodes.cc:16: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from art/compiler/utils/arm/assembler_arm_vixl.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/compiler/driver/compiler_options.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/optimizing_compiler.cc In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/compiler/optimizing/loop_optimization.cc:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/compiler/utils/arm/jni_macro_assembler_arm_vixl.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/parallel_move_resolver.cc libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/method_reference.h:22, from art/compiler/dex/verification_results.h:28: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/stl_tree.h:63, from /usr/include/c++/13.2.1/set:62, from art/compiler/dex/verification_results.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/compiler/optimizing/optimization.h:20, from art/compiler/optimizing/optimization.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26, from art/compiler/optimizing/optimization.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/class_reference.h:23, from art/compiler/dex/verification_results.h:27: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/compiler/optimizing/optimizing_compiler.h:21, from art/compiler/optimizing/optimizing_compiler.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/driver/dex_compilation_unit.h:24: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/compiler/optimizing/nodes.cc:20: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/compiler/jni/quick/jni_compiler.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/dex/inline_method_analyser.h:22: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/libartbase/base/enums.h:20, from art/compiler/jni/quick/arm/calling_convention_arm.h:20: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/prepare_for_register_allocation.cc In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/compiler/optimizing/code_generator_utils.cc:19: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/method_reference.h:22, from art/compiler/linker/linker_patch.h:26, from art/compiler/driver/compiled_method_storage.cc:27: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/compiler/jni/quick/calling_convention.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/dex/verified_method.h:24: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/compiler/dex/verified_method.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/compiler/optimizing/optimizing_compiler.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/reference_type_propagation.cc In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/optimizing/parallel_move_resolver.h:20, from art/compiler/optimizing/parallel_move_resolver.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from art/compiler/optimizing/graph_checker.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/string_reference.h:24, from art/compiler/optimizing/code_generator.h:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/compiler/optimizing/induction_var_analysis.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/scoped_arena_allocator.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/compiler/optimizing/induction_var_analysis.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/nodes.cc:430:1: warning: multi-line comment [-Wcomment] 430 | // /\ | | /\ /\ | /\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/register_allocation_resolver.cc In file included from art/compiler/dex/inline_method_analyser.h:24: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/string_reference.h:24, from art/compiler/optimizing/code_generator.h:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/parallel_move_resolver.cc:20: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/dex/verified_method.h:25: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/compiler/optimizing/block_builder.h:22: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/register_allocator.cc In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/block_builder.h:23: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/compiler/optimizing/builder.h:23: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/prepare_for_register_allocation.h:20, from art/compiler/optimizing/prepare_for_register_allocation.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/code_item_accessors-inl.h:20, from art/compiler/dex/verified_method.cc:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/compiler/jit/jit_logger.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/optimizing/reference_type_propagation.h:20, from art/compiler/optimizing/reference_type_propagation.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/debug/method_debug_info.h:24, from art/compiler/debug/debug_info.h:23, from art/compiler/debug/elf_debug_writer.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/compiler/debug/elf_debug_writer.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/string_reference.h:24, from art/compiler/optimizing/code_generator.h:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from art/compiler/optimizing/graph_visualizer.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/string_reference.h:24, from art/compiler/optimizing/code_generator.h:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libelffile/elf/elf_utils.h:22, from art/libelffile/elf/elf_builder.h:29, from art/compiler/debug/elf_debug_writer.h:28, from art/compiler/optimizing/optimizing_compiler.cc:39: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/compiler/optimizing/register_allocation_resolver.h:21, from art/compiler/optimizing/register_allocation_resolver.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/class_accessor-inl.h:20, from art/compiler/driver/dex_compilation_unit.cc:21: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_field.h:20, from art/compiler/optimizing/intrinsic_objects.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/optimizing/code_generator.h:20, from art/compiler/optimizing/register_allocation_resolver.cc:20: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/compiler/optimizing/optimizing_compiler.cc:51: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/libartbase/base/array_ref.h:21, from art/compiler/optimizing/instruction_builder.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/compiler/optimizing/inliner.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/common_throws.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/handle_scope-inl.h:25, from art/openjdkjvm/OpenjdkJvm.cc:50: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/string_reference.h:24, from art/compiler/optimizing/code_generator.h:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/register_allocator_graph_color.cc In file included from art/compiler/utils/dedupe_set-inl.h:29, from art/compiler/driver/compiled_method_storage.cc:29: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31, from art/compiler/driver/compiler_options.cc:29: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/compiler/optimizing/reference_type_propagation.h:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/optimizing/register_allocator.h:20, from art/compiler/optimizing/register_allocator.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/deque:62, from art/libartbase/base/arena_containers.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/driver/compiler_options.h:26, from art/compiler/dex/verification_results.cc:23: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/code_generator.h:34: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/compiler/optimizing/instruction_builder.h:24: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libdexfile/dex/class_accessor-inl.h:28: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/optimizing/register_allocator_graph_color.h:20, from art/compiler/optimizing/register_allocator_graph_color.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/instruction_builder.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/locations.h:24: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/string_reference.h:25: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/graph_visualizer.cc:24: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/compiler/optimizing/register_allocator.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/locations.h:24, from art/compiler/optimizing/code_generator.h:33: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/string_reference.h:24, from art/compiler/optimizing/code_generator.h:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/compiler/optimizing/register_allocator_graph_color.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/string_reference.h:24, from art/compiler/optimizing/code_generator.h:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/string_reference.h:25: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/scoped_arena_allocator.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/compiler/optimizing/locations.h:24, from art/compiler/optimizing/code_generator.h:33: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/code_generator.h:34, from art/compiler/optimizing/register_allocator.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41, from /usr/include/c++/13.2.1/ostream:40, from art/compiler/driver/compiled_method_storage.cc:18: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/code_generator.h:34, from art/compiler/optimizing/register_allocator_graph_color.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/register_allocator_linear_scan.cc art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/string_reference.h:25: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/compiler/jni/quick/jni_compiler.cc:34: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/locations.h:24, from art/compiler/optimizing/code_generator.h:33: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/string_reference.h:25: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/class_accessor-inl.h:26: In member function 'const uint8_t* art::CodeItemDataAccessor::GetCatchHandlerData(size_t) const', inlined from 'bool art::DexFileVerifier::CheckAndGetHandlerOffsets(const art::dex::CodeItem*, uint32_t*, uint32_t)' at art/libdexfile/dex/dex_file_verifier.cc:532:62: art/libdexfile/dex/code_item_accessors-inl.h:137:38: warning: 'accessor.art::CodeItemDataAccessor::tries_size_' may be used uninitialized [-Wmaybe-uninitialized] 137 | return DexFile::GetCatchHandlerData(end(), TriesSize(), offset); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckAndGetHandlerOffsets(const art::dex::CodeItem*, uint32_t*, uint32_t)': art/libdexfile/dex/dex_file_verifier.cc:531:24: note: 'accessor.art::CodeItemDataAccessor::tries_size_' was declared here 531 | CodeItemDataAccessor accessor(*dex_file_, code_item); | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/locations.h:24, from art/compiler/optimizing/code_generator.h:33: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/select_generator.cc art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/optimizing/register_allocator_linear_scan.h:20, from art/compiler/optimizing/register_allocator_linear_scan.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/string_reference.h:25: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/compiler/optimizing/register_allocator_graph_color.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/scheduler.cc In file included from art/compiler/optimizing/locations.h:24, from art/compiler/optimizing/code_generator.h:33: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/sharpening.cc In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ host C++: libart-compiler <= art/compiler/optimizing/side_effects_analysis.cc In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/libartbase/base/scoped_arena_containers.h:27, from art/compiler/optimizing/register_allocator_linear_scan.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_object.h:20: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_object.h:20: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/driver/compiled_method_storage.cc:24: art/libartbase/base/data_hash.h: In member function 'size_t art::DataHash::operator()(const Container&) const [with Container = art::ArrayRef]': art/libartbase/base/data_hash.h:77:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 77 | k1 ^= tail[2] << 16; | ~~~^~~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:79:9: note: here 79 | case 2: | ^~~~ art/libartbase/base/data_hash.h:80:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 80 | k1 ^= tail[1] << 8; | ~~~^~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:82:9: note: here 82 | case 1: | ^~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/data_hash.h: In member function 'size_t art::DataHash::operator()(const Container&) const [with Container = art::ArrayRef]': art/libartbase/base/data_hash.h:77:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 77 | k1 ^= tail[2] << 16; | ~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:79:9: note: here 79 | case 2: | ^~~~ art/libartbase/base/data_hash.h:80:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 80 | k1 ^= tail[1] << 8; | ~~~^~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:82:9: note: here 82 | case 1: | ^~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/common_throws.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/handle_scope-inl.h:25, from art/openjdkjvm/OpenjdkJvm.cc:50: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/utils/arm/assembler_arm_vixl.cc:22: art/libartbase/base/bit_utils_iterator.h:36:19: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/compiler/jni/quick/jni_compiler.cc:36: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/compiler/optimizing/optimization.h:20, from art/compiler/optimizing/select_generator.h:60, from art/compiler/optimizing/select_generator.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/string_reference.h:25: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ host C++: libart-compiler <= art/compiler/optimizing/ssa_builder.cc art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/string_reference.h:25: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26, from art/compiler/optimizing/optimization.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/libartbase/base/enums.h:20, from art/compiler/optimizing/code_generator_arm_vixl.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/code_generator.h:34, from art/compiler/optimizing/register_allocator_linear_scan.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C++: libart-compiler <= art/compiler/optimizing/ssa_liveness_analysis.cc In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/scoped_arena_allocator.h:22, from art/compiler/optimizing/scheduler.h:22, from art/compiler/optimizing/scheduler.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/optimizing/locations.h:24, from art/compiler/optimizing/code_generator.h:33: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28, from art/compiler/utils/atomic_dex_ref_map-inl.h:25, from art/compiler/dex/verification_results.cc:27: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/compiler/optimizing/scheduler.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/deque:62, from art/libartbase/base/arena_containers.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/sharpening.h:20, from art/compiler/optimizing/sharpening.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/arena_allocator.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/type_reference.h:25, from art/compiler/utils/atomic_dex_ref_map-inl.h:27: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/libartbase/base/enums.h:20, from art/compiler/optimizing/code_generator_arm_vixl.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_object.h:20: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/locations.h:24, from art/compiler/optimizing/parallel_move_resolver.h:23: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h: At global scope: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/code_generator.h:34, from art/compiler/optimizing/scheduler.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/compiler/driver/compiler_options.h:26, from art/compiler/jni/quick/jni_compiler.cc:37: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/ssa_phi_elimination.cc art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/scoped_arena_allocator.h:22, from art/compiler/optimizing/ssa_builder.h:20, from art/compiler/optimizing/ssa_builder.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/arena_allocator.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/compiler/optimizing/ssa_builder.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/libdexfile/dex/dex_file_types.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/arena_allocator.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/array_ref.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::IsGcMarkingOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/compiler/utils/arm/assembler_arm_vixl.cc:91:74: required from here art/runtime/thread.h:678:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 678 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:678:9: note: in expansion of macro 'OFFSETOF_MEMBER' 678 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/scoped_arena_allocator.h:22, from art/compiler/optimizing/ssa_liveness_analysis.h:23, from art/compiler/optimizing/ssa_liveness_analysis.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/stack_map_stream.cc art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/runtime/verifier/method_verifier.h:28, from art/runtime/verifier/method_verifier-inl.h:20, from art/compiler/dex/verified_method.cc:28: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/compiler/optimizing/ssa_liveness_analysis.h:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/driver/compiler_options_map-inl.h:20, from art/compiler/driver/compiler_options.cc:31: art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'CompilerFilter' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:39:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 39 | COMPILER_OPTIONS_KEY (std::string, CompilerFilter) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:39:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 39 | COMPILER_OPTIONS_KEY (std::string, CompilerFilter) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'PIC' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:40:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 40 | COMPILER_OPTIONS_KEY (Unit, PIC) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:40:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 40 | COMPILER_OPTIONS_KEY (Unit, PIC) | ^~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'HugeMethodMaxThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:41:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 41 | COMPILER_OPTIONS_KEY (unsigned int, HugeMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:41:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 41 | COMPILER_OPTIONS_KEY (unsigned int, HugeMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'LargeMethodMaxThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:42:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 42 | COMPILER_OPTIONS_KEY (unsigned int, LargeMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:42:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 42 | COMPILER_OPTIONS_KEY (unsigned int, LargeMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'SmallMethodMaxThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:43:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 43 | COMPILER_OPTIONS_KEY (unsigned int, SmallMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:43:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 43 | COMPILER_OPTIONS_KEY (unsigned int, SmallMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'TinyMethodMaxThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:44:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 44 | COMPILER_OPTIONS_KEY (unsigned int, TinyMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:44:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 44 | COMPILER_OPTIONS_KEY (unsigned int, TinyMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'NumDexMethodsThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:45:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 45 | COMPILER_OPTIONS_KEY (unsigned int, NumDexMethodsThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:45:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 45 | COMPILER_OPTIONS_KEY (unsigned int, NumDexMethodsThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'InlineMaxCodeUnitsThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:46:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 46 | COMPILER_OPTIONS_KEY (unsigned int, InlineMaxCodeUnitsThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:46:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 46 | COMPILER_OPTIONS_KEY (unsigned int, InlineMaxCodeUnitsThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'GenerateDebugInfo' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:47:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 47 | COMPILER_OPTIONS_KEY (bool, GenerateDebugInfo) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:47:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 47 | COMPILER_OPTIONS_KEY (bool, GenerateDebugInfo) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'GenerateMiniDebugInfo' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:48:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 48 | COMPILER_OPTIONS_KEY (bool, GenerateMiniDebugInfo) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:48:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 48 | COMPILER_OPTIONS_KEY (bool, GenerateMiniDebugInfo) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'GenerateBuildID' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:49:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 49 | COMPILER_OPTIONS_KEY (bool, GenerateBuildID) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:49:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 49 | COMPILER_OPTIONS_KEY (bool, GenerateBuildID) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'Debuggable' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:50:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 50 | COMPILER_OPTIONS_KEY (Unit, Debuggable) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:50:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 50 | COMPILER_OPTIONS_KEY (Unit, Debuggable) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'Baseline' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:51:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 51 | COMPILER_OPTIONS_KEY (Unit, Baseline) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:51:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 51 | COMPILER_OPTIONS_KEY (Unit, Baseline) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'TopKProfileThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:52:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 52 | COMPILER_OPTIONS_KEY (double, TopKProfileThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:52:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 52 | COMPILER_OPTIONS_KEY (double, TopKProfileThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'AbortOnHardVerifierFailure' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:53:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 53 | COMPILER_OPTIONS_KEY (bool, AbortOnHardVerifierFailure) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:53:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 53 | COMPILER_OPTIONS_KEY (bool, AbortOnHardVerifierFailure) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'AbortOnSoftVerifierFailure' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:54:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 54 | COMPILER_OPTIONS_KEY (bool, AbortOnSoftVerifierFailure) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:54:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 54 | COMPILER_OPTIONS_KEY (bool, AbortOnSoftVerifierFailure) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'ResolveStartupConstStrings' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:55:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 55 | COMPILER_OPTIONS_KEY (bool, ResolveStartupConstStrings, false) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:55:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 55 | COMPILER_OPTIONS_KEY (bool, ResolveStartupConstStrings, false) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpInitFailures' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:56:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 56 | COMPILER_OPTIONS_KEY (std::string, DumpInitFailures) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:56:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 56 | COMPILER_OPTIONS_KEY (std::string, DumpInitFailures) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpCFG' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:57:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 57 | COMPILER_OPTIONS_KEY (std::string, DumpCFG) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:57:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 57 | COMPILER_OPTIONS_KEY (std::string, DumpCFG) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpCFGAppend' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:58:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 58 | COMPILER_OPTIONS_KEY (Unit, DumpCFGAppend) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:58:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 58 | COMPILER_OPTIONS_KEY (Unit, DumpCFGAppend) | ^~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/compiler/optimizing/reference_type_propagation.h:21, from art/compiler/optimizing/select_generator.cc:20: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'RegisterAllocationStrategy' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:60:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 60 | COMPILER_OPTIONS_KEY (std::string, RegisterAllocationStrategy) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:60:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 60 | COMPILER_OPTIONS_KEY (std::string, RegisterAllocationStrategy) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'VerboseMethods' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:61:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 61 | COMPILER_OPTIONS_KEY (ParseStringList<','>, VerboseMethods) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:61:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 61 | COMPILER_OPTIONS_KEY (ParseStringList<','>, VerboseMethods) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DeduplicateCode' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:62:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 62 | COMPILER_OPTIONS_KEY (bool, DeduplicateCode, true) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:62:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 62 | COMPILER_OPTIONS_KEY (bool, DeduplicateCode, true) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'CountHotnessInCompiledCode' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:63:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 63 | COMPILER_OPTIONS_KEY (Unit, CountHotnessInCompiledCode) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:63:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 63 | COMPILER_OPTIONS_KEY (Unit, CountHotnessInCompiledCode) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'CheckProfiledMethods' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:64:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 64 | COMPILER_OPTIONS_KEY (ProfileMethodsCheck, CheckProfiledMethods) | ^~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:64:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 64 | COMPILER_OPTIONS_KEY (ProfileMethodsCheck, CheckProfiledMethods) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpTimings' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:65:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 65 | COMPILER_OPTIONS_KEY (Unit, DumpTimings) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:65:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 65 | COMPILER_OPTIONS_KEY (Unit, DumpTimings) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpPassTimings' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:66:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 66 | COMPILER_OPTIONS_KEY (Unit, DumpPassTimings) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:66:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 66 | COMPILER_OPTIONS_KEY (Unit, DumpPassTimings) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpStats' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:67:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 67 | COMPILER_OPTIONS_KEY (Unit, DumpStats) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:67:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 67 | COMPILER_OPTIONS_KEY (Unit, DumpStats) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'MaxImageBlockSize' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:68:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 68 | COMPILER_OPTIONS_KEY (unsigned int, MaxImageBlockSize) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:68:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 68 | COMPILER_OPTIONS_KEY (unsigned int, MaxImageBlockSize) | ^~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/compiler/driver/compiler_options.cc:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_object.h:20: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/ssa_builder.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/libartbase/base/enums.h:20, from art/compiler/optimizing/code_generator_arm_vixl.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/arena_allocator.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/compiler/optimizing/sharpening.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_vector-inl.h:20, from art/compiler/optimizing/register_allocation_resolver.cc:19: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/ssa_liveness_analysis.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/libartbase/base/array_ref.h:21, from art/compiler/optimizing/register_allocation_resolver.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::IsGcMarkingOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/compiler/utils/arm/jni_macro_assembler_arm_vixl.cc:180:76: required from here art/runtime/thread.h:678:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 678 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:678:9: note: in expansion of macro 'OFFSETOF_MEMBER' 678 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/optimizing/side_effects_analysis.h:20, from art/compiler/optimizing/side_effects_analysis.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/arena_allocator.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/ssa_phi_elimination.h:20, from art/compiler/optimizing/ssa_phi_elimination.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/nodes.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:748:48: required from 'static constexpr art::ThreadOffset art::Thread::ExceptionOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]' art/compiler/utils/arm/jni_macro_assembler_arm_vixl.cc:622:63: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/arena_allocator.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/compiler/optimizing/stack_map_stream.h:20, from art/compiler/optimizing/stack_map_stream.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/reg_type.h:27, from art/runtime/verifier/reg_type-inl.h:20: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/compiler/optimizing/stack_map_stream.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/compiler/optimizing/ssa_builder.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/code_generator.h:22: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/deque:76: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/dex/verification_results.h:28, from art/compiler/driver/compiler_options.cc:33: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/class_reference.h:23, from art/compiler/dex/verification_results.h:27: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/verifier/reg_type-inl.h:25: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/side_effects_analysis.h:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/stack_map_stream.h:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/deque:62, from art/libartbase/base/arena_containers.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/arena_allocator.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/string_reference.h:24, from art/compiler/optimizing/code_generator.h:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/set:73: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/arena_allocator.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/compiler/optimizing/stack_map_stream.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/compiler/optimizing/register_allocator.cc:23: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/deque:76: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/compiler/optimizing/register_allocator_graph_color.h:24: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc: In member function 'bool art::DexFileVerifier::CheckIntraCodeItem()': art/libdexfile/dex/dex_file_verifier.cc:1240:3: warning: 'accessor.art::CodeItemDataAccessor::registers_size_' may be used uninitialized [-Wmaybe-uninitialized] 1240 | if (UNLIKELY(accessor.InsSize() > accessor.RegistersSize())) { | ^~ art/libdexfile/dex/dex_file_verifier.cc:1239:24: note: 'accessor.art::CodeItemDataAccessor::registers_size_' was declared here 1239 | CodeItemDataAccessor accessor(*dex_file_, code_item); | ^~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:1240:3: warning: 'accessor.art::CodeItemDataAccessor::ins_size_' may be used uninitialized [-Wmaybe-uninitialized] 1240 | if (UNLIKELY(accessor.InsSize() > accessor.RegistersSize())) { | ^~ art/libdexfile/dex/dex_file_verifier.cc:1239:24: note: 'accessor.art::CodeItemDataAccessor::ins_size_' was declared here 1239 | CodeItemDataAccessor accessor(*dex_file_, code_item); | ^~~~~~~~ In file included from libbase/include/android-base/logging.h:64, from art/libartbase/base/hash_set.h:29: art/libdexfile/dex/dex_file_verifier.cc:1246:40: warning: 'accessor.art::CodeItemDataAccessor::outs_size_' may be used uninitialized [-Wmaybe-uninitialized] 1246 | if (UNLIKELY(accessor.OutsSize() > 5 && accessor.OutsSize() > accessor.RegistersSize())) { libbase/include/android-base/macros.h:121:49: note: in definition of macro 'UNLIKELY' 121 | #define UNLIKELY( exp ) (__builtin_expect( (exp) != 0, false )) | ^~~ art/libdexfile/dex/dex_file_verifier.cc:1239:24: note: 'accessor.art::CodeItemDataAccessor::outs_size_' was declared here 1239 | CodeItemDataAccessor accessor(*dex_file_, code_item); | ^~~~~~~~ art/libdexfile/dex/dex_file_verifier.cc:1265:48: warning: 'accessor.art::CodeItemDataAccessor::tries_size_' may be used uninitialized [-Wmaybe-uninitialized] 1265 | uint32_t try_items_size = accessor.TriesSize(); | ^ art/libdexfile/dex/dex_file_verifier.cc:1239:24: note: 'accessor.art::CodeItemDataAccessor::tries_size_' was declared here 1239 | CodeItemDataAccessor accessor(*dex_file_, code_item); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/dex/verification_results.h:28, from art/dex2oat/dex2oat.cc:146: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/class_reference.h:23, from art/runtime/compiler_callbacks.h:21, from art/dex2oat/dex2oat.cc:140: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_vector-inl.h:20, from art/compiler/optimizing/register_allocator.cc:24: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/dex2oat/dex2oat_options.h:29, from art/dex2oat/dex2oat.cc:147: art/compiler/driver/compiler_options_map.def: At global scope: art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'CompilerFilter' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:39:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 39 | COMPILER_OPTIONS_KEY (std::string, CompilerFilter) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:39:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 39 | COMPILER_OPTIONS_KEY (std::string, CompilerFilter) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'PIC' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:40:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 40 | COMPILER_OPTIONS_KEY (Unit, PIC) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:40:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 40 | COMPILER_OPTIONS_KEY (Unit, PIC) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'HugeMethodMaxThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:41:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 41 | COMPILER_OPTIONS_KEY (unsigned int, HugeMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:41:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 41 | COMPILER_OPTIONS_KEY (unsigned int, HugeMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'LargeMethodMaxThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:42:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 42 | COMPILER_OPTIONS_KEY (unsigned int, LargeMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:42:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 42 | COMPILER_OPTIONS_KEY (unsigned int, LargeMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'SmallMethodMaxThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:43:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 43 | COMPILER_OPTIONS_KEY (unsigned int, SmallMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:43:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 43 | COMPILER_OPTIONS_KEY (unsigned int, SmallMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'TinyMethodMaxThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:44:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 44 | COMPILER_OPTIONS_KEY (unsigned int, TinyMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:44:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 44 | COMPILER_OPTIONS_KEY (unsigned int, TinyMethodMaxThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'NumDexMethodsThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:45:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 45 | COMPILER_OPTIONS_KEY (unsigned int, NumDexMethodsThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:45:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 45 | COMPILER_OPTIONS_KEY (unsigned int, NumDexMethodsThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'InlineMaxCodeUnitsThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:46:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 46 | COMPILER_OPTIONS_KEY (unsigned int, InlineMaxCodeUnitsThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:46:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 46 | COMPILER_OPTIONS_KEY (unsigned int, InlineMaxCodeUnitsThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'GenerateDebugInfo' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:47:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 47 | COMPILER_OPTIONS_KEY (bool, GenerateDebugInfo) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:47:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 47 | COMPILER_OPTIONS_KEY (bool, GenerateDebugInfo) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'GenerateMiniDebugInfo' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:48:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 48 | COMPILER_OPTIONS_KEY (bool, GenerateMiniDebugInfo) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:48:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 48 | COMPILER_OPTIONS_KEY (bool, GenerateMiniDebugInfo) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'GenerateBuildID' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:49:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 49 | COMPILER_OPTIONS_KEY (bool, GenerateBuildID) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:49:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 49 | COMPILER_OPTIONS_KEY (bool, GenerateBuildID) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'Debuggable' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:50:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 50 | COMPILER_OPTIONS_KEY (Unit, Debuggable) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:50:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 50 | COMPILER_OPTIONS_KEY (Unit, Debuggable) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'Baseline' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:51:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 51 | COMPILER_OPTIONS_KEY (Unit, Baseline) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:51:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 51 | COMPILER_OPTIONS_KEY (Unit, Baseline) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'TopKProfileThreshold' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:52:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 52 | COMPILER_OPTIONS_KEY (double, TopKProfileThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:52:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 52 | COMPILER_OPTIONS_KEY (double, TopKProfileThreshold) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'AbortOnHardVerifierFailure' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:53:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 53 | COMPILER_OPTIONS_KEY (bool, AbortOnHardVerifierFailure) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:53:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 53 | COMPILER_OPTIONS_KEY (bool, AbortOnHardVerifierFailure) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'AbortOnSoftVerifierFailure' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:54:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 54 | COMPILER_OPTIONS_KEY (bool, AbortOnSoftVerifierFailure) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:54:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 54 | COMPILER_OPTIONS_KEY (bool, AbortOnSoftVerifierFailure) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'ResolveStartupConstStrings' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:55:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 55 | COMPILER_OPTIONS_KEY (bool, ResolveStartupConstStrings, false) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:55:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 55 | COMPILER_OPTIONS_KEY (bool, ResolveStartupConstStrings, false) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpInitFailures' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:56:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 56 | COMPILER_OPTIONS_KEY (std::string, DumpInitFailures) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:56:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 56 | COMPILER_OPTIONS_KEY (std::string, DumpInitFailures) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpCFG' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:57:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 57 | COMPILER_OPTIONS_KEY (std::string, DumpCFG) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:57:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 57 | COMPILER_OPTIONS_KEY (std::string, DumpCFG) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpCFGAppend' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:58:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 58 | COMPILER_OPTIONS_KEY (Unit, DumpCFGAppend) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:58:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 58 | COMPILER_OPTIONS_KEY (Unit, DumpCFGAppend) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'RegisterAllocationStrategy' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:60:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 60 | COMPILER_OPTIONS_KEY (std::string, RegisterAllocationStrategy) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:60:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 60 | COMPILER_OPTIONS_KEY (std::string, RegisterAllocationStrategy) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'VerboseMethods' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:61:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 61 | COMPILER_OPTIONS_KEY (ParseStringList<','>, VerboseMethods) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:61:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 61 | COMPILER_OPTIONS_KEY (ParseStringList<','>, VerboseMethods) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DeduplicateCode' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:62:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 62 | COMPILER_OPTIONS_KEY (bool, DeduplicateCode, true) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:62:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 62 | COMPILER_OPTIONS_KEY (bool, DeduplicateCode, true) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'CountHotnessInCompiledCode' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:63:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 63 | COMPILER_OPTIONS_KEY (Unit, CountHotnessInCompiledCode) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:63:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 63 | COMPILER_OPTIONS_KEY (Unit, CountHotnessInCompiledCode) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'CheckProfiledMethods' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:64:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 64 | COMPILER_OPTIONS_KEY (ProfileMethodsCheck, CheckProfiledMethods) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:64:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 64 | COMPILER_OPTIONS_KEY (ProfileMethodsCheck, CheckProfiledMethods) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpTimings' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:65:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 65 | COMPILER_OPTIONS_KEY (Unit, DumpTimings) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:65:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 65 | COMPILER_OPTIONS_KEY (Unit, DumpTimings) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpPassTimings' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:66:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 66 | COMPILER_OPTIONS_KEY (Unit, DumpPassTimings) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:66:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 66 | COMPILER_OPTIONS_KEY (Unit, DumpPassTimings) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'DumpStats' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:67:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 67 | COMPILER_OPTIONS_KEY (Unit, DumpStats) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:67:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 67 | COMPILER_OPTIONS_KEY (Unit, DumpStats) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: warning: unnecessary parentheses in declaration of 'MaxImageBlockSize' [-Wparentheses] 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:68:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 68 | COMPILER_OPTIONS_KEY (unsigned int, MaxImageBlockSize) | ^~~~~~~~~~~~~~~~~~~~ art/compiler/driver/compiler_options_map.h:39:70: note: remove parentheses 39 | #define COMPILER_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/compiler/driver/compiler_options_map.def:68:1: note: in expansion of macro 'COMPILER_OPTIONS_KEY' 68 | COMPILER_OPTIONS_KEY (unsigned int, MaxImageBlockSize) | ^~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/string_reference.h:24, from art/compiler/optimizing/code_generator.h:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/dex2oat/linker/oat_writer.h:34, from art/dex2oat/dex2oat_options.h:31: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/string_reference.h:24, from art/compiler/optimizing/code_generator.h:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/dex2oat/linker/oat_writer.h:35: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/dex/verification_results.cc:24: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:890:48: required from 'static constexpr art::ThreadOffset art::Thread::TopHandleScopeOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]' art/compiler/jni/quick/jni_compiler.cc:240:71: required from 'art::JniCompiledMethod art::ArtJniCompileMethodInternal(const CompilerOptions&, uint32_t, uint32_t, const DexFile&) [with PointerSize kPointerSize = art::PointerSize::k64; uint32_t = unsigned int]' art/compiler/jni/quick/jni_compiler.cc:772:57: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::IsGcMarkingOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]': art/compiler/jni/quick/jni_compiler.cc:325:64: required from 'art::JniCompiledMethod art::ArtJniCompileMethodInternal(const CompilerOptions&, uint32_t, uint32_t, const DexFile&) [with PointerSize kPointerSize = art::PointerSize::k64; uint32_t = unsigned int]' art/compiler/jni/quick/jni_compiler.cc:772:57: required from here art/runtime/thread.h:678:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 678 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:678:9: note: in expansion of macro 'OFFSETOF_MEMBER' 678 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/deque:76: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:890:48: required from 'static constexpr art::ThreadOffset art::Thread::TopHandleScopeOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]' art/compiler/jni/quick/jni_compiler.cc:240:71: required from 'art::JniCompiledMethod art::ArtJniCompileMethodInternal(const CompilerOptions&, uint32_t, uint32_t, const DexFile&) [with PointerSize kPointerSize = art::PointerSize::k32; uint32_t = unsigned int]' art/compiler/jni/quick/jni_compiler.cc:775:57: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::IsGcMarkingOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/compiler/jni/quick/jni_compiler.cc:325:64: required from 'art::JniCompiledMethod art::ArtJniCompileMethodInternal(const CompilerOptions&, uint32_t, uint32_t, const DexFile&) [with PointerSize kPointerSize = art::PointerSize::k32; uint32_t = unsigned int]' art/compiler/jni/quick/jni_compiler.cc:775:57: required from here art/runtime/thread.h:678:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 678 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:678:9: note: in expansion of macro 'OFFSETOF_MEMBER' 678 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/verifier/reg_type_cache-inl.h:20: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/arena_allocator.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.def: At global scope: art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'CompactDexLevel' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:37:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 37 | DEX2OAT_OPTIONS_KEY (CompactDexLevel, CompactDexLevel) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:37:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 37 | DEX2OAT_OPTIONS_KEY (CompactDexLevel, CompactDexLevel) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.def:37:54: warning: declaration of 'art::Dex2oatArgumentMap::Key art::Dex2oatArgumentMap::CompactDexLevel' changes meaning of 'CompactDexLevel' [-Wchanges-meaning] 37 | DEX2OAT_OPTIONS_KEY (CompactDexLevel, CompactDexLevel) | ^~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:70: note: in definition of macro 'DEX2OAT_OPTIONS_KEY' 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~ art/dex2oat/dex2oat_options.def:37:22: note: used here to mean 'enum class art::CompactDexLevel' 37 | DEX2OAT_OPTIONS_KEY (CompactDexLevel, CompactDexLevel) | ^~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:63: note: in definition of macro 'DEX2OAT_OPTIONS_KEY' 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~ In file included from art/dex2oat/dex2oat_options.h:28: art/libdexfile/dex/compact_dex_level.h:27:12: note: declared here 27 | enum class CompactDexLevel { | ^~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DexFiles' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:38:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 38 | DEX2OAT_OPTIONS_KEY (std::vector, DexFiles) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:38:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 38 | DEX2OAT_OPTIONS_KEY (std::vector, DexFiles) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DexLocations' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:39:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 39 | DEX2OAT_OPTIONS_KEY (std::vector, DexLocations) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:39:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 39 | DEX2OAT_OPTIONS_KEY (std::vector, DexLocations) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ZipFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:40:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 40 | DEX2OAT_OPTIONS_KEY (int, ZipFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:40:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 40 | DEX2OAT_OPTIONS_KEY (int, ZipFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ZipLocation' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:41:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 41 | DEX2OAT_OPTIONS_KEY (std::string, ZipLocation) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:41:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 41 | DEX2OAT_OPTIONS_KEY (std::string, ZipLocation) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'InputVdexFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:42:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 42 | DEX2OAT_OPTIONS_KEY (int, InputVdexFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:42:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 42 | DEX2OAT_OPTIONS_KEY (int, InputVdexFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'InputVdex' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:43:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 43 | DEX2OAT_OPTIONS_KEY (std::string, InputVdex) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:43:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 43 | DEX2OAT_OPTIONS_KEY (std::string, InputVdex) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'OutputVdexFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:44:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 44 | DEX2OAT_OPTIONS_KEY (int, OutputVdexFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:44:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 44 | DEX2OAT_OPTIONS_KEY (int, OutputVdexFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'OutputVdex' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:45:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 45 | DEX2OAT_OPTIONS_KEY (std::string, OutputVdex) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:45:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 45 | DEX2OAT_OPTIONS_KEY (std::string, OutputVdex) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DmFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:46:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 46 | DEX2OAT_OPTIONS_KEY (int, DmFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:46:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 46 | DEX2OAT_OPTIONS_KEY (int, DmFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DmFile' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:47:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 47 | DEX2OAT_OPTIONS_KEY (std::string, DmFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:47:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 47 | DEX2OAT_OPTIONS_KEY (std::string, DmFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'OatFiles' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:48:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 48 | DEX2OAT_OPTIONS_KEY (std::vector, OatFiles) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:48:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 48 | DEX2OAT_OPTIONS_KEY (std::vector, OatFiles) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'OatSymbols' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:49:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 49 | DEX2OAT_OPTIONS_KEY (std::vector, OatSymbols) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:49:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 49 | DEX2OAT_OPTIONS_KEY (std::vector, OatSymbols) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Strip' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:50:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 50 | DEX2OAT_OPTIONS_KEY (Unit, Strip) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:50:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 50 | DEX2OAT_OPTIONS_KEY (Unit, Strip) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'OatFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:51:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 51 | DEX2OAT_OPTIONS_KEY (int, OatFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:51:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 51 | DEX2OAT_OPTIONS_KEY (int, OatFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'OatLocation' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:52:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 52 | DEX2OAT_OPTIONS_KEY (std::string, OatLocation) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:52:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 52 | DEX2OAT_OPTIONS_KEY (std::string, OatLocation) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Watchdog' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:53:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 53 | DEX2OAT_OPTIONS_KEY (bool, Watchdog) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:53:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 53 | DEX2OAT_OPTIONS_KEY (bool, Watchdog) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'WatchdogTimeout' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:54:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 54 | DEX2OAT_OPTIONS_KEY (int, WatchdogTimeout) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:54:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 54 | DEX2OAT_OPTIONS_KEY (int, WatchdogTimeout) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Threads' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:55:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 55 | DEX2OAT_OPTIONS_KEY (unsigned int, Threads) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:55:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 55 | DEX2OAT_OPTIONS_KEY (unsigned int, Threads) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ImageFilenames' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:56:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 56 | DEX2OAT_OPTIONS_KEY (std::vector, ImageFilenames) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:56:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 56 | DEX2OAT_OPTIONS_KEY (std::vector, ImageFilenames) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ImageClasses' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:57:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 57 | DEX2OAT_OPTIONS_KEY (std::string, ImageClasses) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:57:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 57 | DEX2OAT_OPTIONS_KEY (std::string, ImageClasses) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ImageClassesZip' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:58:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 58 | DEX2OAT_OPTIONS_KEY (std::string, ImageClassesZip) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:58:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 58 | DEX2OAT_OPTIONS_KEY (std::string, ImageClassesZip) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ImageFormat' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:59:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 59 | DEX2OAT_OPTIONS_KEY (ImageHeader::StorageMode, ImageFormat) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:59:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 59 | DEX2OAT_OPTIONS_KEY (ImageHeader::StorageMode, ImageFormat) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Passes' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:60:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 60 | DEX2OAT_OPTIONS_KEY (std::string, Passes) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:60:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 60 | DEX2OAT_OPTIONS_KEY (std::string, Passes) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Base' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:61:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 61 | DEX2OAT_OPTIONS_KEY (std::string, Base) // TODO: Hex string parsing. | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:61:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 61 | DEX2OAT_OPTIONS_KEY (std::string, Base) // TODO: Hex string parsing. | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'BootImage' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:62:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 62 | DEX2OAT_OPTIONS_KEY (std::string, BootImage) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:62:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 62 | DEX2OAT_OPTIONS_KEY (std::string, BootImage) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'AndroidRoot' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:63:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 63 | DEX2OAT_OPTIONS_KEY (std::string, AndroidRoot) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:63:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 63 | DEX2OAT_OPTIONS_KEY (std::string, AndroidRoot) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'TargetInstructionSet' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:64:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 64 | DEX2OAT_OPTIONS_KEY (InstructionSet, TargetInstructionSet) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:64:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 64 | DEX2OAT_OPTIONS_KEY (InstructionSet, TargetInstructionSet) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'TargetInstructionSetVariant' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:65:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 65 | DEX2OAT_OPTIONS_KEY (std::string, TargetInstructionSetVariant) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:65:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 65 | DEX2OAT_OPTIONS_KEY (std::string, TargetInstructionSetVariant) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'TargetInstructionSetFeatures' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:66:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 66 | DEX2OAT_OPTIONS_KEY (std::string, TargetInstructionSetFeatures) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:66:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 66 | DEX2OAT_OPTIONS_KEY (std::string, TargetInstructionSetFeatures) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Backend' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:67:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 67 | DEX2OAT_OPTIONS_KEY (Compiler::Kind, Backend) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:67:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 67 | DEX2OAT_OPTIONS_KEY (Compiler::Kind, Backend) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Profile' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:68:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 68 | DEX2OAT_OPTIONS_KEY (std::string, Profile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:68:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 68 | DEX2OAT_OPTIONS_KEY (std::string, Profile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ProfileFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:69:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 69 | DEX2OAT_OPTIONS_KEY (int, ProfileFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:69:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 69 | DEX2OAT_OPTIONS_KEY (int, ProfileFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'Host' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:70:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 70 | DEX2OAT_OPTIONS_KEY (Unit, Host) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:70:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 70 | DEX2OAT_OPTIONS_KEY (Unit, Host) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DumpTiming' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:71:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 71 | DEX2OAT_OPTIONS_KEY (Unit, DumpTiming) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:71:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 71 | DEX2OAT_OPTIONS_KEY (Unit, DumpTiming) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DumpPasses' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:72:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 72 | DEX2OAT_OPTIONS_KEY (Unit, DumpPasses) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:72:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 72 | DEX2OAT_OPTIONS_KEY (Unit, DumpPasses) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DumpStats' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:73:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 73 | DEX2OAT_OPTIONS_KEY (Unit, DumpStats) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:73:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 73 | DEX2OAT_OPTIONS_KEY (Unit, DumpStats) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'CopyDexFiles' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:74:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 74 | DEX2OAT_OPTIONS_KEY (linker::CopyOption, CopyDexFiles) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:74:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 74 | DEX2OAT_OPTIONS_KEY (linker::CopyOption, CopyDexFiles) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'AvoidStoringInvocation' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:75:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 75 | DEX2OAT_OPTIONS_KEY (Unit, AvoidStoringInvocation) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:75:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 75 | DEX2OAT_OPTIONS_KEY (Unit, AvoidStoringInvocation) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'SwapFile' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:76:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 76 | DEX2OAT_OPTIONS_KEY (std::string, SwapFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:76:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 76 | DEX2OAT_OPTIONS_KEY (std::string, SwapFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'SwapFileFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:77:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 77 | DEX2OAT_OPTIONS_KEY (int, SwapFileFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:77:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 77 | DEX2OAT_OPTIONS_KEY (int, SwapFileFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'SwapDexSizeThreshold' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:78:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 78 | DEX2OAT_OPTIONS_KEY (unsigned int, SwapDexSizeThreshold) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:78:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 78 | DEX2OAT_OPTIONS_KEY (unsigned int, SwapDexSizeThreshold) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'SwapDexCountThreshold' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:79:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 79 | DEX2OAT_OPTIONS_KEY (unsigned int, SwapDexCountThreshold) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:79:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 79 | DEX2OAT_OPTIONS_KEY (unsigned int, SwapDexCountThreshold) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'VeryLargeAppThreshold' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:80:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 80 | DEX2OAT_OPTIONS_KEY (unsigned int, VeryLargeAppThreshold) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:80:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 80 | DEX2OAT_OPTIONS_KEY (unsigned int, VeryLargeAppThreshold) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'AppImageFile' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:81:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 81 | DEX2OAT_OPTIONS_KEY (std::string, AppImageFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:81:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 81 | DEX2OAT_OPTIONS_KEY (std::string, AppImageFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'AppImageFileFd' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:82:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 82 | DEX2OAT_OPTIONS_KEY (int, AppImageFileFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:82:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 82 | DEX2OAT_OPTIONS_KEY (int, AppImageFileFd) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'MultiImage' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:83:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 83 | DEX2OAT_OPTIONS_KEY (Unit, MultiImage) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:83:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 83 | DEX2OAT_OPTIONS_KEY (Unit, MultiImage) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'NoInlineFrom' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:84:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 84 | DEX2OAT_OPTIONS_KEY (std::string, NoInlineFrom) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:84:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 84 | DEX2OAT_OPTIONS_KEY (std::string, NoInlineFrom) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ForceDeterminism' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:85:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 85 | DEX2OAT_OPTIONS_KEY (Unit, ForceDeterminism) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:85:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 85 | DEX2OAT_OPTIONS_KEY (Unit, ForceDeterminism) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ClasspathDir' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:86:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 86 | DEX2OAT_OPTIONS_KEY (std::string, ClasspathDir) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:86:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 86 | DEX2OAT_OPTIONS_KEY (std::string, ClasspathDir) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'InvocationFile' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:87:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 87 | DEX2OAT_OPTIONS_KEY (std::string, InvocationFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:87:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 87 | DEX2OAT_OPTIONS_KEY (std::string, InvocationFile) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ClassLoaderContext' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:88:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 88 | DEX2OAT_OPTIONS_KEY (std::string, ClassLoaderContext) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:88:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 88 | DEX2OAT_OPTIONS_KEY (std::string, ClassLoaderContext) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'ClassLoaderContextFds' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:89:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 89 | DEX2OAT_OPTIONS_KEY (std::string, ClassLoaderContextFds) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:89:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 89 | DEX2OAT_OPTIONS_KEY (std::string, ClassLoaderContextFds) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'StoredClassLoaderContext' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:90:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 90 | DEX2OAT_OPTIONS_KEY (std::string, StoredClassLoaderContext) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:90:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 90 | DEX2OAT_OPTIONS_KEY (std::string, StoredClassLoaderContext) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'DirtyImageObjects' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:91:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 91 | DEX2OAT_OPTIONS_KEY (std::string, DirtyImageObjects) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:91:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 91 | DEX2OAT_OPTIONS_KEY (std::string, DirtyImageObjects) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'RuntimeOptions' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:92:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 92 | DEX2OAT_OPTIONS_KEY (std::vector, RuntimeOptions) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:92:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 92 | DEX2OAT_OPTIONS_KEY (std::vector, RuntimeOptions) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: warning: unnecessary parentheses in declaration of 'CompilationReason' [-Wparentheses] 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:93:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 93 | DEX2OAT_OPTIONS_KEY (std::string, CompilationReason) | ^~~~~~~~~~~~~~~~~~~ art/dex2oat/dex2oat_options.h:71:69: note: remove parentheses 71 | #define DEX2OAT_OPTIONS_KEY(Type, Name, ...) static const Key (Name); | ^~~~~~ art/dex2oat/dex2oat_options.def:93:1: note: in expansion of macro 'DEX2OAT_OPTIONS_KEY' 93 | DEX2OAT_OPTIONS_KEY (std::string, CompilationReason) | ^~~~~~~~~~~~~~~~~~~ In file included from art/dexlayout/./dexlayout.h:35, from art/dex2oat/dex2oat.cc:149: art/dexlayout/./dex_ir.h:113:48: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 113 | template class Iterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/./dex_ir.h:115:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 115 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/./dex_ir.h:117:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/./dex_ir.h:118:33: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 118 | using pointer = typename std::iterator::pointer; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/dexlayout/./dex_ir.h:119:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 119 | using reference = typename std::iterator::reference; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/string_reference.h:25: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_vector-inl.h:20, from art/compiler/optimizing/register_allocator_linear_scan.cc:22: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/string_reference.h:24, from art/compiler/optimizing/code_generator.h:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:28: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/optimizing/superblock_cloner.cc In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:28: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h: At global scope: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/string_reference.h:25: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/string_reference.h:25: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/compiler/optimizing/locations.h:24, from art/compiler/optimizing/code_generator.h:33: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/compiler/optimizing/scheduler.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/induction_var_analysis.cc: In function 'bool art::IsGuardedBy(HLoopInformation*, IfCondition, HInstruction*, HInstruction*)': art/compiler/optimizing/induction_var_analysis.cc:138:54: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 138 | default: LOG(FATAL) << "unexpected cmp: " << cmp; | ^~~ art/compiler/optimizing/induction_var_analysis.cc:138:54: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/induction_var_analysis.cc:138:54: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] art/compiler/optimizing/induction_var_analysis.cc:138:54: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/induction_var_analysis.cc:138:54: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] art/compiler/optimizing/induction_var_analysis.cc:138:54: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/compiler/optimizing/induction_var_range.cc: In member function 'art::InductionVarRange::Value art::InductionVarRange::GetLinear(art::HInductionVarAnalysis::InductionInfo*, art::HInductionVarAnalysis::InductionInfo*, bool, bool) const': libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:550:3: note: in expansion of macro 'DCHECK_EQ' 550 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kLinear); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:550:3: note: in expansion of macro 'DCHECK_EQ' 550 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kLinear); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:550:3: note: in expansion of macro 'DCHECK_EQ' 550 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kLinear); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:550:3: note: in expansion of macro 'DCHECK_EQ' 550 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kLinear); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:550:3: note: in expansion of macro 'DCHECK_EQ' 550 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kLinear); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:550:3: note: in expansion of macro 'DCHECK_EQ' 550 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kLinear); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:550:3: note: in expansion of macro 'DCHECK_EQ' 550 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kLinear); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:550:3: note: in expansion of macro 'DCHECK_EQ' 550 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kLinear); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:550:3: note: in expansion of macro 'DCHECK_EQ' 550 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kLinear); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:550:3: note: in expansion of macro 'DCHECK_EQ' 550 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kLinear); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:550:3: note: in expansion of macro 'DCHECK_EQ' 550 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kLinear); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:550:3: note: in expansion of macro 'DCHECK_EQ' 550 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kLinear); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/induction_var_range.cc: In member function 'art::InductionVarRange::Value art::InductionVarRange::GetPolynomial(art::HInductionVarAnalysis::InductionInfo*, art::HInductionVarAnalysis::InductionInfo*, bool, bool) const': libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:602:3: note: in expansion of macro 'DCHECK_EQ' 602 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:602:3: note: in expansion of macro 'DCHECK_EQ' 602 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:602:3: note: in expansion of macro 'DCHECK_EQ' 602 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:602:3: note: in expansion of macro 'DCHECK_EQ' 602 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:602:3: note: in expansion of macro 'DCHECK_EQ' 602 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:602:3: note: in expansion of macro 'DCHECK_EQ' 602 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from art/compiler/optimizing/ssa_liveness_analysis.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:602:3: note: in expansion of macro 'DCHECK_EQ' 602 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:602:3: note: in expansion of macro 'DCHECK_EQ' 602 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:602:3: note: in expansion of macro 'DCHECK_EQ' 602 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:602:3: note: in expansion of macro 'DCHECK_EQ' 602 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:602:3: note: in expansion of macro 'DCHECK_EQ' 602 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:602:3: note: in expansion of macro 'DCHECK_EQ' 602 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc: In member function 'art::InductionVarRange::Value art::InductionVarRange::GetGeometric(art::HInductionVarAnalysis::InductionInfo*, art::HInductionVarAnalysis::InductionInfo*, bool, bool) const': libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:628:3: note: in expansion of macro 'DCHECK_EQ' 628 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:628:3: note: in expansion of macro 'DCHECK_EQ' 628 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:628:3: note: in expansion of macro 'DCHECK_EQ' 628 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:628:3: note: in expansion of macro 'DCHECK_EQ' 628 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:628:3: note: in expansion of macro 'DCHECK_EQ' 628 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:628:3: note: in expansion of macro 'DCHECK_EQ' 628 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:628:3: note: in expansion of macro 'DCHECK_EQ' 628 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:628:3: note: in expansion of macro 'DCHECK_EQ' 628 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:628:3: note: in expansion of macro 'DCHECK_EQ' 628 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:628:3: note: in expansion of macro 'DCHECK_EQ' 628 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:628:3: note: in expansion of macro 'DCHECK_EQ' 628 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:628:3: note: in expansion of macro 'DCHECK_EQ' 628 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:28: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/induction_var_range.cc: In member function 'art::InductionVarRange::Value art::InductionVarRange::MulRangeAndConstant(int64_t, art::HInductionVarAnalysis::InductionInfo*, art::HInductionVarAnalysis::InductionInfo*, bool, bool) const': art/compiler/optimizing/induction_var_range.cc:889:65: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] 889 | return MulValue(GetVal(info, trip, in_body, is_min == value >= 0), c); | ~~~~~~^~~~ art/compiler/optimizing/induction_var_range.cc: In member function 'art::InductionVarRange::Value art::InductionVarRange::DivRangeAndConstant(int64_t, art::HInductionVarAnalysis::InductionInfo*, art::HInductionVarAnalysis::InductionInfo*, bool, bool) const': art/compiler/optimizing/induction_var_range.cc:902:65: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] 902 | return DivValue(GetVal(info, trip, in_body, is_min == value >= 0), c); | ~~~~~~^~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/induction_var_analysis.cc: In member function 'art::HInductionVarAnalysis::InductionInfo* art::HInductionVarAnalysis::SolveOp(art::HLoopInformation*, art::HInstruction*, art::HInstruction*, art::HInstruction*, art::HInstruction*, InductionOp)': art/compiler/optimizing/induction_var_analysis.cc:836:25: warning: passing 'art::HInductionVarAnalysis::InductionOp' chooses 'int' over 'long unsigned int' [-Wsign-promo] 836 | LOG(FATAL) << op; | ^~ art/compiler/optimizing/induction_var_analysis.cc:836:25: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/induction_var_analysis.cc:836:25: warning: passing 'art::HInductionVarAnalysis::InductionOp' chooses 'int' over 'long int' [-Wsign-promo] art/compiler/optimizing/induction_var_analysis.cc:836:25: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/induction_var_analysis.cc:836:25: warning: passing 'art::HInductionVarAnalysis::InductionOp' chooses 'int' over 'unsigned int' [-Wsign-promo] art/compiler/optimizing/induction_var_analysis.cc:836:25: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h: At global scope: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc: In member function 'bool art::InductionVarRange::GenerateLastValuePolynomial(art::HInductionVarAnalysis::InductionInfo*, art::HInductionVarAnalysis::InductionInfo*, art::HGraph*, art::HBasicBlock*, art::HInstruction**) const': libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1044:3: note: in expansion of macro 'DCHECK_EQ' 1044 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1044:3: note: in expansion of macro 'DCHECK_EQ' 1044 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1044:3: note: in expansion of macro 'DCHECK_EQ' 1044 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1044:3: note: in expansion of macro 'DCHECK_EQ' 1044 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1044:3: note: in expansion of macro 'DCHECK_EQ' 1044 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1044:3: note: in expansion of macro 'DCHECK_EQ' 1044 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1044:3: note: in expansion of macro 'DCHECK_EQ' 1044 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1044:3: note: in expansion of macro 'DCHECK_EQ' 1044 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1044:3: note: in expansion of macro 'DCHECK_EQ' 1044 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1044:3: note: in expansion of macro 'DCHECK_EQ' 1044 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1044:3: note: in expansion of macro 'DCHECK_EQ' 1044 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1044:3: note: in expansion of macro 'DCHECK_EQ' 1044 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPolynomial); | ^~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/libartbase/base/arena_bit_vector.h:20, from art/compiler/optimizing/superblock_cloner.h:20, from art/compiler/optimizing/superblock_cloner.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/induction_var_range.cc: In member function 'bool art::InductionVarRange::GenerateLastValueGeometric(art::HInductionVarAnalysis::InductionInfo*, art::HInductionVarAnalysis::InductionInfo*, art::HGraph*, art::HBasicBlock*, art::HInstruction**) const': libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1077:3: note: in expansion of macro 'DCHECK_EQ' 1077 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1077:3: note: in expansion of macro 'DCHECK_EQ' 1077 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1077:3: note: in expansion of macro 'DCHECK_EQ' 1077 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1077:3: note: in expansion of macro 'DCHECK_EQ' 1077 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1077:3: note: in expansion of macro 'DCHECK_EQ' 1077 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1077:3: note: in expansion of macro 'DCHECK_EQ' 1077 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1077:3: note: in expansion of macro 'DCHECK_EQ' 1077 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1077:3: note: in expansion of macro 'DCHECK_EQ' 1077 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1077:3: note: in expansion of macro 'DCHECK_EQ' 1077 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1077:3: note: in expansion of macro 'DCHECK_EQ' 1077 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1077:3: note: in expansion of macro 'DCHECK_EQ' 1077 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1077:3: note: in expansion of macro 'DCHECK_EQ' 1077 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kGeometric); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/superblock_cloner.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/compiler/optimizing/induction_var_analysis.cc: In member function 'bool art::HInductionVarAnalysis::RewriteBreakLoop(art::HLoopInformation*, art::HBasicBlock*, int64_t, art::DataType::Type)': art/compiler/optimizing/induction_var_analysis.cc:1182:28: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 1182 | default: LOG(FATAL) << cmp; UNREACHABLE(); | ^~~ art/compiler/optimizing/induction_var_analysis.cc:1182:28: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/induction_var_analysis.cc:1182:28: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/induction_var_analysis.cc:1182:28: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/induction_var_analysis.cc:1182:28: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] art/compiler/optimizing/induction_var_analysis.cc:1182:28: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/induction_var_range.cc: In member function 'bool art::InductionVarRange::GenerateLastValueWrapAround(art::HInductionVarAnalysis::InductionInfo*, art::HInductionVarAnalysis::InductionInfo*, art::HGraph*, art::HBasicBlock*, art::HInstruction**) const': libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1129:3: note: in expansion of macro 'DCHECK_EQ' 1129 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kWrapAround); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1129:3: note: in expansion of macro 'DCHECK_EQ' 1129 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kWrapAround); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/string_reference.h:24, from art/compiler/optimizing/code_generator.h:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1129:3: note: in expansion of macro 'DCHECK_EQ' 1129 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kWrapAround); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1129:3: note: in expansion of macro 'DCHECK_EQ' 1129 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kWrapAround); | ^~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1129:3: note: in expansion of macro 'DCHECK_EQ' 1129 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kWrapAround); | ^~~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1129:3: note: in expansion of macro 'DCHECK_EQ' 1129 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kWrapAround); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1129:3: note: in expansion of macro 'DCHECK_EQ' 1129 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kWrapAround); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1129:3: note: in expansion of macro 'DCHECK_EQ' 1129 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kWrapAround); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1129:3: note: in expansion of macro 'DCHECK_EQ' 1129 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kWrapAround); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1129:3: note: in expansion of macro 'DCHECK_EQ' 1129 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kWrapAround); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1129:3: note: in expansion of macro 'DCHECK_EQ' 1129 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kWrapAround); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1129:3: note: in expansion of macro 'DCHECK_EQ' 1129 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kWrapAround); | ^~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/compiler/optimizing/nodes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc: In member function 'bool art::InductionVarRange::GenerateLastValuePeriodic(art::HInductionVarAnalysis::InductionInfo*, art::HInductionVarAnalysis::InductionInfo*, art::HGraph*, art::HBasicBlock*, art::HInstruction**, bool*) const': libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1151:3: note: in expansion of macro 'DCHECK_EQ' 1151 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPeriodic); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1151:3: note: in expansion of macro 'DCHECK_EQ' 1151 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPeriodic); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1151:3: note: in expansion of macro 'DCHECK_EQ' 1151 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPeriodic); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1151:3: note: in expansion of macro 'DCHECK_EQ' 1151 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPeriodic); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1151:3: note: in expansion of macro 'DCHECK_EQ' 1151 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPeriodic); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1151:3: note: in expansion of macro 'DCHECK_EQ' 1151 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPeriodic); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1151:3: note: in expansion of macro 'DCHECK_EQ' 1151 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPeriodic); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1151:3: note: in expansion of macro 'DCHECK_EQ' 1151 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPeriodic); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1151:3: note: in expansion of macro 'DCHECK_EQ' 1151 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPeriodic); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1151:3: note: in expansion of macro 'DCHECK_EQ' 1151 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPeriodic); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1151:3: note: in expansion of macro 'DCHECK_EQ' 1151 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPeriodic); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1151:3: note: in expansion of macro 'DCHECK_EQ' 1151 | DCHECK_EQ(info->induction_class, HInductionVarAnalysis::kPeriodic); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1157:5: note: in expansion of macro 'DCHECK_EQ' 1157 | DCHECK_EQ(p->op_a->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1157:5: note: in expansion of macro 'DCHECK_EQ' 1157 | DCHECK_EQ(p->op_a->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1157:5: note: in expansion of macro 'DCHECK_EQ' 1157 | DCHECK_EQ(p->op_a->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1157:5: note: in expansion of macro 'DCHECK_EQ' 1157 | DCHECK_EQ(p->op_a->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1157:5: note: in expansion of macro 'DCHECK_EQ' 1157 | DCHECK_EQ(p->op_a->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1157:5: note: in expansion of macro 'DCHECK_EQ' 1157 | DCHECK_EQ(p->op_a->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1157:5: note: in expansion of macro 'DCHECK_EQ' 1157 | DCHECK_EQ(p->op_a->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1157:5: note: in expansion of macro 'DCHECK_EQ' 1157 | DCHECK_EQ(p->op_a->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1157:5: note: in expansion of macro 'DCHECK_EQ' 1157 | DCHECK_EQ(p->op_a->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1157:5: note: in expansion of macro 'DCHECK_EQ' 1157 | DCHECK_EQ(p->op_a->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1157:5: note: in expansion of macro 'DCHECK_EQ' 1157 | DCHECK_EQ(p->op_a->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1157:5: note: in expansion of macro 'DCHECK_EQ' 1157 | DCHECK_EQ(p->op_a->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/scoped_arena_allocator.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1162:3: note: in expansion of macro 'DCHECK_EQ' 1162 | DCHECK_EQ(p->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1162:3: note: in expansion of macro 'DCHECK_EQ' 1162 | DCHECK_EQ(p->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1162:3: note: in expansion of macro 'DCHECK_EQ' 1162 | DCHECK_EQ(p->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1162:3: note: in expansion of macro 'DCHECK_EQ' 1162 | DCHECK_EQ(p->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1162:3: note: in expansion of macro 'DCHECK_EQ' 1162 | DCHECK_EQ(p->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1162:3: note: in expansion of macro 'DCHECK_EQ' 1162 | DCHECK_EQ(p->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1162:3: note: in expansion of macro 'DCHECK_EQ' 1162 | DCHECK_EQ(p->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1162:3: note: in expansion of macro 'DCHECK_EQ' 1162 | DCHECK_EQ(p->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1162:3: note: in expansion of macro 'DCHECK_EQ' 1162 | DCHECK_EQ(p->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1162:3: note: in expansion of macro 'DCHECK_EQ' 1162 | DCHECK_EQ(p->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::HInductionVarAnalysis::InductionClass' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1162:3: note: in expansion of macro 'DCHECK_EQ' 1162 | DCHECK_EQ(p->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1162:3: note: in expansion of macro 'DCHECK_EQ' 1162 | DCHECK_EQ(p->induction_class, HInductionVarAnalysis::kInvariant); | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/compiler/optimizing/nodes.h:41, from art/compiler/optimizing/superblock_cloner.h:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:30, from art/compiler/optimizing/instruction_simplifier_arm.cc:19: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/trampolines/trampoline_compiler.cc In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/deque:62, from art/libartbase/base/arena_containers.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/string_reference.h:25: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/stack_map_stream.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/libartbase/base/atomic.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/array_ref.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/trampolines/trampoline_compiler.h:24, from art/compiler/trampolines/trampoline_compiler.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/utils/assembler.cc art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libartbase/base/arena_allocator.h:28, from art/compiler/trampolines/trampoline_compiler.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h: At global scope: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libartbase/base/array_ref.h:23, from art/compiler/debug/elf_debug_writer.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/globals.h:20, from art/compiler/optimizing/optimizing_compiler.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/array_ref.h:23, from art/compiler/optimizing/register_allocator.h:21: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/string_reference.h:25: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_object.h:20: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/base/mutex.h:28: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/locations.h:24, from art/compiler/optimizing/code_generator.h:33: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/compiler/optimizing/code_generator.h:30, from art/compiler/optimizing/graph_visualizer.cc:27: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/utils/assembler.h:24, from art/compiler/utils/assembler.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/dead_code_elimination.cc: In function 'bool art::HasEquality(IfCondition)': art/compiler/optimizing/dead_code_elimination.cc:123:1: warning: control reaches end of non-void function [-Wreturn-type] 123 | } | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ host C++: libart-compiler <= art/compiler/utils/jni_macro_assembler.cc art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/compiler/utils/assembler.h:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/type_reference.h:25, from art/libprofile/./profile/profile_compilation_info.h:35, from art/compiler/optimizing/inliner.h:23: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/dexlayout/./dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/./dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/./dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/./dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/./dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/dexlayout/./dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/./dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/./dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/./dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/./dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/./dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/./dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/./dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/./dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/./dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/./dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/./dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/./dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/dex2oat/driver/compiler_driver.h:28, from art/dex2oat/dex2oat.cc:150: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/arena_allocator.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' host C++: libart-compiler <= art/compiler/utils/swap_space.cc art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/dex2oat/dex/dex_to_dex_compiler.h:24, from art/dex2oat/driver/compiler_driver.h:38: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/scoped_arena_allocator.h:20: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/utils/jni_macro_assembler.h:24, from art/compiler/utils/jni_macro_assembler.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= art/compiler/compiler.cc In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/compiler/utils/jni_macro_assembler.h:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/compiler/optimizing/induction_var_range.cc: In member function 'art::InductionVarRange::Value art::InductionVarRange::GetVal(art::HInductionVarAnalysis::InductionInfo*, art::HInductionVarAnalysis::InductionInfo*, bool, bool) const': art/compiler/optimizing/induction_var_range.cc:750:13: warning: this statement may fall through [-Wimplicit-fallthrough=] 750 | if (!in_body && !is_min) { // one extra! | ^~ art/compiler/optimizing/induction_var_range.cc:754:11: note: here 754 | case HInductionVarAnalysis::kTripCountInBody: | ^~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/driver/compiler_options.h_operator_out.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/induction_var_analysis.cc: In member function 'void art::HInductionVarAnalysis::ClassifyNonTrivial(art::HLoopInformation*)': art/compiler/optimizing/induction_var_analysis.cc:493:36: warning: this statement may fall through [-Wimplicit-fallthrough=] 493 | induction = CreateInduction(kLinear, kNop, induction, initial, /*fetch*/ nullptr, type_); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/induction_var_analysis.cc:495:7: note: here 495 | case kPolynomial: | ^~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/compiler/optimizing/induction_var_range.cc: In member function 'bool art::InductionVarRange::GenerateCode(art::HInductionVarAnalysis::InductionInfo*, art::HInductionVarAnalysis::InductionInfo*, art::HGraph*, art::HBasicBlock*, art::HInstruction**, bool, bool) const': art/compiler/optimizing/induction_var_range.cc:1299:13: warning: this statement may fall through [-Wimplicit-fallthrough=] 1299 | if (!in_body && !is_min) { // one extra! | ^~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/compiler/optimizing/induction_var_range.cc:1303:11: note: here 1303 | case HInductionVarAnalysis::kTripCountInBody: | ^~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/linker/linker_patch.h_operator_out.cc art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/compiler/utils/swap_space.h:29, from art/compiler/utils/swap_space.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/compiler/utils/swap_space.h:30: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:28: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/intrinsics.h: In member function 'void art::IntrinsicOptimizations::SetBit(uint32_t)': art/compiler/optimizing/intrinsics.h:177:7: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 177 | *(const_cast(value_)) |= (1 << bit); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/compiler/compiler.h:20, from art/compiler/compiler.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/deque:76: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/compiler/driver/compiler_options.h:26, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/driver/compiler_options.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/scoped_arena_allocator.h:20: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/compiler/optimizing/graph_checker.cc:32: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] In file included from art/libartbase/base/hash_set.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/compiler/utils/swap_space.cc:27: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/arena_object.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/optimizing/locations.h_operator_out.cc art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/arena_allocator.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/method_reference.h:22, from art/compiler/linker/linker_patch.h:26, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/linker/linker_patch.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ host C++: libart-compiler <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/optimizing/optimizing_compiler_stats.h_operator_out.cc In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/intrinsics.h: In member function 'void art::IntrinsicOptimizations::SetBit(uint32_t)': art/compiler/optimizing/intrinsics.h:177:7: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 177 | *(const_cast(value_)) |= (1 << bit); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/compiler/driver/compiler_options.cc:35: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/optimizing/locations.h:20, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/optimizing/locations.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/type_reference.h:25, from art/libprofile/./profile/profile_compilation_info.h:35, from art/compiler/optimizing/inliner.h:23, from art/compiler/optimizing/optimization.cc:51: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart-compiler <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/utils/arm/constants_arm.h_operator_out.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/cha_guard_optimization.cc: In member function 'void art::CHAGuardVisitor::_ZN3art15CHAGuardVisitor15VisitBasicBlockEPNS_11HBasicBlockE.part.0(art::HBasicBlock*)': art/compiler/optimizing/cha_guard_optimization.cc:81:25: warning: storing the address of local variable 'it' in '*this.art::CHAGuardVisitor::instruction_iterator_' [-Wdangling-pointer=] 81 | instruction_iterator_ = ⁢ | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ art/compiler/optimizing/cha_guard_optimization.cc:80:24: note: 'it' declared here 80 | HInstructionIterator it(block->GetInstructions()); | ^~ art/compiler/optimizing/cha_guard_optimization.cc:75:57: note: 'this' declared here 75 | void CHAGuardVisitor::VisitBasicBlock(HBasicBlock* block) { | ^ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27, from art/compiler/driver/dex_compilation_unit.h:25: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/compiler/optimizing/nodes.h:34: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/driver/compiler_options.h:26, from art/compiler/jit/jit_compiler.cc:31: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/compiler/optimizing/optimizing_compiler_stats.h:27, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/optimizing/optimizing_compiler_stats.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libartbase/base/data_hash.h: In member function 'size_t art::DataHash::operator()(const Container&) const [with Container = std::basic_string_view]': art/libartbase/base/data_hash.h:77:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 77 | k1 ^= tail[2] << 16; | ~~~^~~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:79:9: note: here 79 | case 2: | ^~~~ art/libartbase/base/data_hash.h:80:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 80 | k1 ^= tail[1] << 8; | ~~~^~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:82:9: note: here 82 | case 1: | ^~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/utils/arm/assembler_arm_vixl.h:22, from art/compiler/trampolines/trampoline_compiler.cc:24: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/compiler/trampolines/trampoline_compiler.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37, from art/compiler/optimizing/intrinsics.h:20, from art/compiler/optimizing/optimization.cc:53: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/optimizing/nodes.h:37: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/runtime.h:38, from art/compiler/dex/verified_method.cc:27: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/arena_allocator.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/compiler/jit/jit_logger.cc:24: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/utils/mips/assembler_mips.h_operator_out.cc art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:297:31: required from 'static art::SubtypeCheckInfo::State art::SubtypeCheck::GetState(ClassPtr) [with ClassPtr = art::ObjPtr]' art/compiler/optimizing/graph_checker.cc:625:84: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/driver/compiler_options.h_operator_out.cc:1: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/utils/arm/jni_macro_assembler_arm_vixl.h:22, from art/compiler/utils/jni_macro_assembler.cc:23: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/compiler/utils/jni_macro_assembler.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/linker/linker_patch.h_operator_out.cc:1: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/mirror/object_array-alloc-inl.h:22, from art/compiler/optimizing/intrinsic_objects.cc:24: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/intrinsics.h: In member function 'void art::IntrinsicOptimizations::SetBit(uint32_t)': art/compiler/optimizing/intrinsics.h:177:7: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 177 | *(const_cast(value_)) |= (1 << bit); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/scoped_thread_state_change-inl.h:28, from art/compiler/optimizing/graph_checker.cc:31: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/compiler/optimizing/nodes.h:46: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-compiler <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/utils/mips64/assembler_mips64.h_operator_out.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/code_item_accessors-inl.h:20, from art/compiler/compiler.cc:23: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/arch/instruction_set_features.h:24, from art/runtime/arch/mips/instruction_set_features_mips.h:22, from art/compiler/utils/mips/assembler_mips.h:24, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/utils/mips/assembler_mips.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/utils/mips/assembler_mips.h:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Help' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ShowVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath_a' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathLocations' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Image' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CheckJni' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniOptsForceCopy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpProvider' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.def:48:43: warning: declaration of 'art::RuntimeArgumentMap::Key art::RuntimeArgumentMap::JdwpProvider' changes meaning of 'JdwpProvider' [-Wchanges-meaning] 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:109: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ art/runtime/runtime_options.def:48:22: note: used here to mean 'enum class art::JdwpProvider' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:63: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ In file included from art/runtime/runtime.h:40, from art/runtime/mirror/array-inl.h:27: art/runtime/jdwp_provider.h:26:12: note: declared here 26 | enum class JdwpProvider { | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryMaximumSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryInitialSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapGrowthLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMinFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMaxFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NonMovingSpaceCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapTargetUtilization' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForegroundHeapGrowthMultiplier' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ParallelGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ConcGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FinalizerTimeoutMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MaxSpinsBeforeThinLockInflation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongPauseLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongGCLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ThreadSuspendTimeout' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpGCPerformanceOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoBeforeGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoAfterGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpJITInfoOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'IgnoreMaxFootprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LowMemoryMode' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseTLAB' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'EnableHSpaceCompactForOOM' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseJitCompilation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpNativeStackOnSigQuit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MadviseRandomAccess' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCompileThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITWarmupThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITOsrThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPriorityThreadWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITInvokeTransitionWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPoolThreadPthreadPriority' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheInitialCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheMaxCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HSpaceCompactForOOMMinIntervalsMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'PropertiesList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Relocate' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageDex2Oat' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Interpret' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GcOption' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectSpace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BackgroundGc' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DisableExplicitGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoSigChain' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForceNativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verbose' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackDumpLockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFile' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFileSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceStreaming' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileClock' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileSaverOpts' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Compiler' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageCompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verify' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'TargetSdkVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HiddenApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CorePlatformApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ZygoteMaxFailedBoots' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoDexFileFallback' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CpuAbiList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Fingerprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Experimental' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentLib' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Plugins' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathDexList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageInstructionSet' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerCallbacksPtr' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookIsSensitiveThread' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookVfprintf' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookExit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookAbort' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'SlowDebug' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GlobalRefAllocStackTraceLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseStderrLogger' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'OnlyUseSystemOatFiles' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'VerifierLoggingThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageSpaceLoadingOrder' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FastClassNotFoundException' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/reference_type_propagation.h:22: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ host asm: libart <= art/runtime/arch/arm/instruction_set_features_assembly_tests.S art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/optimizing/locations.h_operator_out.cc:1: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ host asm: libart <= art/runtime/arch/arm/jni_entrypoints_arm.S art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/arch/instruction_set_features.h:24, from art/runtime/arch/mips64/instruction_set_features_mips64.h:20, from art/compiler/utils/mips64/assembler_mips64.h:25, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/utils/mips64/assembler_mips64.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24, from art/runtime/oat_file-inl.h:23, from art/compiler/jit/jit_logger.cc:25: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ host asm: libart <= art/runtime/arch/arm/memcmp16_arm.S libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/compiler/optimizing/locations.h:24: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/compiler/utils/mips64/assembler_mips64.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host asm: libart <= art/runtime/arch/arm/quick_entrypoints_arm.S In file included from art/compiler/utils/swap_space.h:20: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ host C++: libart <= art/runtime/interpreter/mterp/mterp.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/verifier/register_line-inl.h: In static member function 'static size_t art::verifier::RegisterLine::ComputeSize(size_t)': art/runtime/verifier/register_line-inl.h:187:26: warning: 'offsetof' within non-standard-layout type 'art::verifier::RegisterLine' is conditionally-supported [-Winvalid-offsetof] 187 | return OFFSETOF_MEMBER(RegisterLine, line_) + num_regs * sizeof(uint16_t); art/runtime/verifier/register_line-inl.h:187:10: note: in expansion of macro 'OFFSETOF_MEMBER' 187 | return OFFSETOF_MEMBER(RegisterLine, line_) + num_regs * sizeof(uint16_t); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/arch/arm/context_arm.cc host C++: libart <= art/runtime/arch/arm/entrypoints_init_arm.cc In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/compiler/debug/elf_debug_loc_writer.h:28, from art/compiler/debug/elf_debug_info_writer.h:26: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/compiler/optimizing/code_generator.cc:44: art/libartbase/base/bit_utils_iterator.h: At global scope: art/libartbase/base/bit_utils_iterator.h:36:19: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator_arm_vixl.cc:23: art/libartbase/base/bit_utils_iterator.h: At global scope: art/libartbase/base/bit_utils_iterator.h:36:19: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/arch/arm/quick_entrypoints_cc_arm.cc art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/compiler/optimizing/code_generator.cc:47: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/arch/arm/thread_arm.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/arch/arm/fault_handler_arm.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/monitor_linux.cc art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] host C++: libart <= art/runtime/runtime_linux.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/base/quasi_atomic.h:101, from art/runtime/interpreter/mterp/mterp.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/thread_linux.cc In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/class_linker.h:29, from art/runtime/debugger.h:31, from art/runtime/interpreter/mterp/mterp.cc:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/aot_class_linker.cc art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:30, from art/compiler/optimizing/ssa_liveness_analysis.cc:20: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ In file included from art/runtime/arch/context.h:23, from art/runtime/arch/arm/context_arm.h:22, from art/runtime/arch/arm/context_arm.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/art_field.cc art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/thread.h:28, from art/runtime/thread-current-inl.h:20, from art/runtime/arch/arm/context_arm.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/entrypoints/entrypoint_utils.h:24, from art/runtime/arch/arm/entrypoints_init_arm.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/compiler/dex/inline_method_analyser.cc:25: art/libdexfile/dex/dex_instruction-inl.h: In member function 'uint32_t art::Instruction::GetVarArgs(uint32_t*, uint16_t) const': art/libdexfile/dex/dex_instruction-inl.h:537:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 537 | arg[4] = InstA(inst_data); | ~~~~~~~^~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:539:5: note: here 539 | case 4: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:540:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 540 | arg[3] = (regList >> 12) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:542:5: note: here 542 | case 3: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:543:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 543 | arg[2] = (regList >> 8) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:545:5: note: here 545 | case 2: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:546:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 546 | arg[1] = (regList >> 4) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:548:5: note: here 548 | case 1: | ^~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/art_method.h:30, from art/runtime/arch/arm/quick_entrypoints_cc_arm.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/dex/inline_method_analyser.cc: In static member function 'static bool art::InlineMethodAnalyser::AnalyseMethodCode(const art::CodeItemDataAccessor*, const art::MethodReference&, bool, art::ArtMethod*, art::InlineMethod*)': art/compiler/dex/inline_method_analyser.cc:471:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 471 | if (AnalyseConstMethod(code_item, result)) { | ^~ art/compiler/dex/inline_method_analyser.cc:475:5: note: here 475 | case Instruction::CONST_WIDE: | ^~~~ In file included from art/runtime/debugger.h:39: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/thread.h:28, from art/runtime/arch/arm/thread_arm.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/thread.h:30: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libartbase/base/scoped_arena_containers.h: In instantiation of 'void art::ArenaDelete::ProtectMemory(T*, size_t) const [with T = art::verifier::RegisterLine; size_t = unsigned int]': art/runtime/verifier/register_line-inl.h:233:18: required from here art/libartbase/base/scoped_arena_containers.h:242:13: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class art::verifier::RegisterLine' with no trivial copy-assignment [-Wclass-memaccess] 242 | memset(ptr, kMagicFill, size); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/method_verifier.h:36: art/runtime/verifier/register_line.h:66:7: note: 'class art::verifier::RegisterLine' declared here 66 | class RegisterLine { | ^~~~~~~~~~~~ art/libartbase/base/scoped_arena_containers.h:249:13: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class art::verifier::RegisterLine' with no trivial copy-assignment [-Wclass-memaccess] 249 | memset(ptr, kMagicFill, size); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/verifier/register_line.h:66:7: note: 'class art::verifier::RegisterLine' declared here 66 | class RegisterLine { | ^~~~~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/art_method.cc In file included from art/compiler/optimizing/code_generator_arm_vixl.cc:32: art/compiler/optimizing/intrinsics.h: In member function 'void art::IntrinsicOptimizations::SetBit(uint32_t)': art/compiler/optimizing/intrinsics.h:177:7: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 177 | *(const_cast(value_)) |= (1 << bit); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/backtrace_helper.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/runtime/monitor.h:29, from art/runtime/monitor_linux.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:33, from art/runtime/monitor.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/fault_handler.h:26, from art/runtime/arch/arm/fault_handler_arm.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C++: libart <= art/runtime/barrier.cc art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/class_linker.h:29, from art/runtime/aot_class_linker.h:20, from art/runtime/aot_class_linker.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/thread.h:28, from art/runtime/thread_linux.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/thread.h:30: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/libartbase/base/file_utils.h:26, from art/runtime/runtime.h:30, from art/runtime/runtime_linux.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart <= art/runtime/base/locks.cc art/compiler/optimizing/register_allocator.cc: In static member function 'static std::unique_ptr art::RegisterAllocator::Create(art::ScopedArenaAllocator*, art::CodeGenerator*, const art::SsaLivenessAnalysis&, Strategy)': art/compiler/optimizing/register_allocator.cc:51:65: warning: passing 'art::RegisterAllocator::Strategy' chooses 'int' over 'long unsigned int' [-Wsign-promo] 51 | LOG(FATAL) << "Invalid register allocation strategy: " << strategy; | ^~~~~~~~ art/compiler/optimizing/register_allocator.cc:51:65: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/register_allocator.cc:51:65: warning: passing 'art::RegisterAllocator::Strategy' chooses 'int' over 'long int' [-Wsign-promo] art/compiler/optimizing/register_allocator.cc:51:65: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/register_allocator.cc:51:65: warning: passing 'art::RegisterAllocator::Strategy' chooses 'int' over 'unsigned int' [-Wsign-promo] art/compiler/optimizing/register_allocator.cc:51:65: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/runtime.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/base/mem_map_arena_pool.cc In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/entrypoints/entrypoint_utils-inl.h:22, from art/runtime/interpreter/mterp/mterp.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/art_field.h:22, from art/runtime/art_field.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_field.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/stack_map_stream.h:29: art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/compiler/optimizing/stack_map_stream.h:27: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/optimizing/optimizing_compiler.cc:27: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/arch/arm/fault_handler_arm.cc:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/compiler/optimizing/scheduler_arm.cc: In member function 'void art::arm::SchedulingLatencyVisitorARM::HandleGenerateConditionWithZero(art::IfCondition)': art/compiler/optimizing/scheduler_arm.cc:201:48: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 201 | LOG(FATAL) << "Unexpected condition " << condition; | ^~~~~~~~~ art/compiler/optimizing/scheduler_arm.cc:201:48: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/scheduler_arm.cc:201:48: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] art/compiler/optimizing/scheduler_arm.cc:201:48: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/scheduler_arm.cc:201:48: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] art/compiler/optimizing/scheduler_arm.cc:201:48: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/handle_scope-inl.h:25, from art/runtime/aot_class_linker.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:30, from art/runtime/art_method.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/arena_bit_vector.h:21, from art/compiler/optimizing/nodes.h:25, from art/compiler/optimizing/builder.h:25, from art/compiler/optimizing/optimizing_compiler.cc:34: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/atomic.h:27, from art/runtime/thread.h:28, from art/runtime/thread-inl.h:20, from art/runtime/backtrace_helper.cc:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/thread.h:30: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:33: art/libartbase/base/transform_array_ref.h:36:34: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | using FallbackConstIter = std::iterator; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/barrier.h:32, from art/runtime/barrier.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/art_field.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' host C++: libart <= art/runtime/base/mutex.cc In file included from art/compiler/optimizing/nodes.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/trampolines/trampoline_compiler.cc: In function 'std::unique_ptr > art::arm::CreateTrampoline(art::ArenaAllocator*, art::EntryPointCallingConvention, art::ThreadOffset32)': art/compiler/trampolines/trampoline_compiler.cc:91:19: warning: redundant move in return statement [-Wredundant-move] 91 | return std::move(entry_stub); | ~~~~~~~~~^~~~~~~~~~~~ art/compiler/trampolines/trampoline_compiler.cc:91:19: note: remove 'std::move' call art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47, from art/runtime/interpreter/mterp/mterp.cc:25: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | host C++: libart <= art/runtime/base/quasi_atomic.cc art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/barrier.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/base/locks.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/aot_class_linker.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C++: libart <= art/runtime/base/timing_logger.cc art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/art_method.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/runtime/base/mem_map_arena_pool.h:22, from art/runtime/base/mem_map_arena_pool.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/nodes.h:49: art/compiler/utils/intrusive_forward_list.h: At global scope: art/compiler/utils/intrusive_forward_list.h:63:50: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | class IntrusiveForwardListIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/base/locks.cc:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/scoped_thread_state_change-inl.h:27, from art/runtime/base/locks.cc:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/cha.cc art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/base/mutex.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/utils/mips/assembler_mips.h_operator_out.cc:1: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/base/quasi_atomic.h:101, from art/runtime/base/quasi_atomic.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/base/quasi_atomic.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/art_method.cc:38: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/base/quasi_atomic.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/base/mutex.cc:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/compiler/optimizing/code_generator_arm_vixl.cc:36: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/scoped_thread_state_change-inl.h:27, from art/runtime/base/mutex.cc:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/mirror/object_array-inl.h:29, from art/compiler/optimizing/intrinsics_arm_vixl.cc:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.cc:56: art/compiler/optimizing/intrinsics.h: In member function 'void art::IntrinsicOptimizations::SetBit(uint32_t)': art/compiler/optimizing/intrinsics.h:177:7: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 177 | *(const_cast(value_)) |= (1 << bit); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/class_linker.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart-compiler_intermediates/utils/mips64/assembler_mips64.h_operator_out.cc:1: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/cha.h:24, from art/runtime/cha.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/base/timing_logger.h:21, from art/runtime/base/timing_logger.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ host C++: libart <= art/runtime/class_loader_context.cc art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/timing_logger.cc:23: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/compiler/dex/inline_method_analyser.cc: In function 'bool art::{anonymous}::DoAnalyseConstructor(const art::CodeItemDataAccessor*, art::ArtMethod*, ConstructorIPutData (&)[3])': art/compiler/dex/inline_method_analyser.cc:169:12: warning: 'args[0]' may be used uninitialized [-Wmaybe-uninitialized] 169 | uint32_t args[Instruction::kMaxVarArgRegs]; | ^~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/base/timing_logger.cc:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' host C++: libart <= art/runtime/class_root.cc art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/class_loader_context.h:23, from art/runtime/class_loader_context.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/class_linker.h:29, from art/runtime/class_linker.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/cha.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/arch/arm/context_arm.cc:20: art/libartbase/base/bit_utils_iterator.h:36:19: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 36 | : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/arch/arm/context_arm.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31, from art/runtime/class_loader_context.h:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/interpreter/interpreter.h:21, from art/runtime/arch/arm/entrypoints_init_arm.cc:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/specfun.h:43, from /usr/include/c++/13.2.1/cmath:3699, from /usr/include/c++/13.2.1/math.h:36, from art/runtime/arch/arm/entrypoints_init_arm.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/optimization.cc: In function 'const char* art::OptimizationPassName(OptimizationPass)': art/compiler/optimizing/optimization.cc:135:1: warning: control reaches end of non-void function [-Wreturn-type] 135 | } | ^ In file included from art/runtime/jit/jit.h:20, from art/runtime/cha.cc:22: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/class_linker.cc:36: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/compiler/optimizing/register_allocation_resolver.cc: In member function 'void art::RegisterAllocationResolver::Resolve(art::ArrayRef, size_t, size_t, size_t, size_t, size_t, size_t, art::ArrayRef)': art/compiler/optimizing/register_allocation_resolver.cc:104:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 104 | slot += long_spill_slots; | ~~~~~^~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/register_allocation_resolver.cc:106:9: note: here 106 | case DataType::Type::kUint64: | ^~~~ art/compiler/optimizing/register_allocation_resolver.cc:108:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 108 | slot += float_spill_slots; | ~~~~~^~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/register_allocation_resolver.cc:110:9: note: here 110 | case DataType::Type::kFloat32: | ^~~~ art/compiler/optimizing/register_allocation_resolver.cc:111:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 111 | slot += int_spill_slots; | ~~~~~^~~~~~~~~~~~~~~~~~ art/compiler/optimizing/register_allocation_resolver.cc:113:9: note: here 113 | case DataType::Type::kReference: | ^~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/class_loader_context.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/arch/arm/fault_handler_arm.cc:22: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/fault_handler.h:24: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33, from art/runtime/mirror/object-inl.h:26, from art/runtime/mirror/object_array-inl.h:29, from art/compiler/optimizing/code_generator.cc:58: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/art_field.h:22, from art/runtime/art_field-inl.h:20, from art/runtime/class_linker-inl.h:22, from art/runtime/class_root.h:20, from art/runtime/class_root.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_field.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ host C++: libart <= art/runtime/class_table.cc art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from /usr/include/c++/13.2.1/bitset:52, from art/runtime/thread.h:21: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadFlagsOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/runtime/arch/arm/thread_arm.cc:27:3: required from here art/runtime/thread.h:664:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 664 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:664:9: note: in expansion of macro 'OFFSETOF_MEMBER' 664 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/compiler/optimizing/superblock_cloner.cc: In member function 'void art::SuperblockCloner::CleanUpControlFlow()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/superblock_cloner.cc:380:3: note: in expansion of macro 'DCHECK_EQ' 380 | DCHECK_EQ(result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/superblock_cloner.cc:380:3: note: in expansion of macro 'DCHECK_EQ' 380 | DCHECK_EQ(result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/superblock_cloner.cc:380:3: note: in expansion of macro 'DCHECK_EQ' 380 | DCHECK_EQ(result, kAnalysisSuccess); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/superblock_cloner.cc:380:3: note: in expansion of macro 'DCHECK_EQ' 380 | DCHECK_EQ(result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/superblock_cloner.cc:380:3: note: in expansion of macro 'DCHECK_EQ' 380 | DCHECK_EQ(result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/superblock_cloner.cc:380:3: note: in expansion of macro 'DCHECK_EQ' 380 | DCHECK_EQ(result, kAnalysisSuccess); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/superblock_cloner.cc:380:3: note: in expansion of macro 'DCHECK_EQ' 380 | DCHECK_EQ(result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/superblock_cloner.cc:380:3: note: in expansion of macro 'DCHECK_EQ' 380 | DCHECK_EQ(result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/superblock_cloner.cc:380:3: note: in expansion of macro 'DCHECK_EQ' 380 | DCHECK_EQ(result, kAnalysisSuccess); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/superblock_cloner.cc:380:3: note: in expansion of macro 'DCHECK_EQ' 380 | DCHECK_EQ(result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/superblock_cloner.cc:380:3: note: in expansion of macro 'DCHECK_EQ' 380 | DCHECK_EQ(result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/superblock_cloner.cc:380:3: note: in expansion of macro 'DCHECK_EQ' 380 | DCHECK_EQ(result, kAnalysisSuccess); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:759:48: required from 'static constexpr art::ThreadOffset art::Thread::CardTableOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]' art/runtime/arch/arm/thread_arm.cc:28:3: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThinLockIdOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/runtime/arch/arm/thread_arm.cc:30:3: required from here art/runtime/thread.h:650:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 650 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:650:9: note: in expansion of macro 'OFFSETOF_MEMBER' 650 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/class_linker.cc:88: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:30, from art/compiler/optimizing/builder.cc:24: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/quasi_atomic.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/list:62, from art/runtime/class_linker.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ host C++: libart <= art/runtime/common_throws.cc libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ host C++: libart <= art/runtime/compiler_filter.cc art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/debug_print.cc art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/debugger.cc In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/runtime/class_table.h:24, from art/runtime/class_table-inl.h:20, from art/runtime/class_table.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/runtime/class_table.h:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/optimizing/code_generator.h:30, from art/compiler/optimizing/instruction_builder.cc:25: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/runtime/art_field.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/dex/dex_file_annotations.cc art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/arch/arm/quick_entrypoints_cc_arm.cc: In function 'void art::quick_invoke_reg_setup(ArtMethod*, uint32_t*, uint32_t, Thread*, JValue*, const char*) [with bool kIsStatic = false]': art/runtime/arch/arm/quick_entrypoints_cc_arm.cc:83:9: warning: this statement may fall through [-Wimplicit-fallthrough=] 83 | ++arg_index; | ^~ art/runtime/arch/arm/quick_entrypoints_cc_arm.cc:85:7: note: here 85 | default: | ^~~~~~~ art/runtime/arch/arm/quick_entrypoints_cc_arm.cc: In function 'void art::quick_invoke_reg_setup(ArtMethod*, uint32_t*, uint32_t, Thread*, JValue*, const char*) [with bool kIsStatic = true]': art/runtime/arch/arm/quick_entrypoints_cc_arm.cc:83:9: warning: this statement may fall through [-Wimplicit-fallthrough=] 83 | ++arg_index; | ^~ art/runtime/arch/arm/quick_entrypoints_cc_arm.cc:85:7: note: here 85 | default: | ^~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:764:48: required from 'static constexpr art::ThreadOffset art::Thread::ThreadSuspendTriggerOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]' art/runtime/arch/arm/fault_handler_arm.cc:132:61: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:30, from art/compiler/optimizing/intrinsics.h:20, from art/compiler/optimizing/instruction_simplifier.cc:24: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from /usr/include/c++/13.2.1/cstddef:50, from art/runtime/interpreter/mterp/mterp.h:20, from art/runtime/interpreter/mterp/mterp.cc:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/compiler_filter.h:24, from art/runtime/compiler_filter.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/dex_register_location.cc art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/list:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/class_table-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80, from art/runtime/barrier.h:30: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/class_table-inl.h:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/common_throws.h:22, from art/runtime/common_throws.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/debug_print.h:20, from art/runtime/debug_print.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from /usr/include/c++/13.2.1/bitset:52, from art/runtime/thread.h:21: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/utils.h:32, from art/runtime/compiler_filter.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/mirror/class-inl.h:22: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/class_linker.h:29, from art/runtime/debugger.h:31, from art/runtime/debugger.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/dex_to_dex_decompiler.cc art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/elf_file.cc In file included from art/libdexfile/dex/dex_file.h:30, from art/runtime/dex/dex_file_annotations.h:20, from art/runtime/dex/dex_file_annotations.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/exec_utils.cc In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/memory_region.h:29, from art/runtime/dex_register_location.h:24, from art/runtime/dex_register_location.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/elf_file.h:23, from art/runtime/elf_file.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/class_loader_utils.h:20, from art/runtime/debug_print.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libelffile/elf/elf_utils.h:22, from art/runtime/elf_file.h:25: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/debugger.cc:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/dex_to_dex_decompiler.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/quasi_atomic.h:23: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/dex_to_dex_decompiler.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/fault_handler.cc In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/leb128.h:26, from art/runtime/elf_file.cc:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart <= art/runtime/gc/allocation_record.cc host C++: libart <= art/runtime/gc/allocator/dlmalloc.cc In file included from art/libartbase/arch/instruction_set.h:25, from art/libartbase/base/file_utils.h:26, from art/runtime/runtime.h:30, from art/runtime/exec_utils.cc:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/libdexfile/dex/dex_file_types.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/runtime.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/allocator/rosalloc.cc art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/cha.h:26: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from art/runtime/cha.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:30, from art/compiler/optimizing/nodes.cc:27: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/accounting/bitmap.cc art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/fault_handler.h:26, from art/runtime/fault_handler.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart <= art/runtime/gc/accounting/card_table.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/accounting/heap_bitmap.cc In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/class_loader_context.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/gc/accounting/mod_union_table.cc In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/gc/allocation_record.h:23, from art/runtime/gc/allocation_record.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/accounting/remembered_set.cc In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ host C++: libart <= art/runtime/gc/accounting/space_bitmap.cc In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/libartbase/base/utils.h:32, from art/runtime/gc/allocator/dlmalloc.cc:63: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/allocator/dlmalloc.cc:17: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/fault_handler.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/runtime/gc/allocator/rosalloc.h:31, from art/runtime/gc/allocator/rosalloc-inl.h:20, from art/runtime/gc/allocator/rosalloc.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? host C++: libart <= art/runtime/gc/collector/concurrent_copying.cc host C++: libart <= art/runtime/gc/collector/garbage_collector.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:33, from art/runtime/gc/allocator/rosalloc.h:34: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc/accounting/bitmap.h:26, from art/runtime/gc/accounting/bitmap-inl.h:20, from art/runtime/gc/accounting/bitmap.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/gc/allocation_record.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/gc/allocator/rosalloc.h:36: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc/accounting/card_table.h:22, from art/runtime/gc/accounting/card_table.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/collector/immune_region.cc art/compiler/optimizing/scheduler_arm.cc: In member function 'void art::arm::SchedulingLatencyVisitorARM::HandleGenerateConditionWithZero(art::IfCondition)': art/compiler/optimizing/scheduler_arm.cc:184:38: warning: this statement may fall through [-Wimplicit-fallthrough=] 184 | last_visited_internal_latency_ += kArmIntegerOpLatency; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/scheduler_arm.cc:186:5: note: here 186 | case kCondLT: | ^~~~ art/compiler/optimizing/scheduler_arm.cc: In member function 'void art::arm::SchedulingLatencyVisitorARM::HandleGenerateLongTestConstant(art::HCondition*)': art/compiler/optimizing/scheduler_arm.cc:254:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 254 | if (value == std::numeric_limits::max()) { | ^~ art/compiler/optimizing/scheduler_arm.cc:260:5: note: here 260 | case kCondGE: | ^~~~ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/runtime/gc/accounting/heap_bitmap.h:22, from art/runtime/gc/accounting/heap_bitmap.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/gc/accounting/heap_bitmap.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart <= art/runtime/gc/collector/immune_spaces.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/runtime/art_field.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:30, from art/compiler/optimizing/optimizing_compiler.cc:36: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/backtrace_helper.h:20, from art/runtime/backtrace_helper.cc:17: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/runtime/gc/accounting/mod_union_table.h:20, from art/runtime/gc/accounting/mod_union_table.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/gc/collector/immune_region.h:22, from art/runtime/gc/collector/immune_region.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/gc/accounting/bitmap.h:26, from art/runtime/gc/accounting/mod_union_table.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/runtime/gc/accounting/remembered_set.h:20, from art/runtime/gc/accounting/remembered_set.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26, from art/runtime/gc/accounting/remembered_set.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/list:62, from art/runtime/class_linker.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/accounting/card_table.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/runtime/gc/allocator/rosalloc.cc:31: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/accounting/mod_union_table.cc:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/gc/collector/garbage_collector.h:24, from art/runtime/gc/collector/concurrent_copying.h:20, from art/runtime/gc/collector/concurrent_copying.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/gc/collector/garbage_collector.h:24, from art/runtime/gc/collector/garbage_collector.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37, from art/compiler/optimizing/intrinsics.h:20, from art/compiler/optimizing/inliner.cc:34: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/collector/mark_sweep-inl.h:22, from art/runtime/gc/accounting/remembered_set.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/space/space.h:23, from art/runtime/gc/space/space-inl.h:20, from art/runtime/gc/collector/immune_region.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/gc/collector/garbage_collector.cc:26: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24, from art/runtime/cha.h:27: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/gc/accounting/space_bitmap.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/list:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/accounting/mod_union_table.cc:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/gc/collector/garbage_collector.cc:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/space/space-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/gc/collector/mark_sweep-inl.h:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/collector/garbage_collector.cc:34: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/class_table.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/gc/collector/concurrent_copying.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc/collector/immune_spaces.h:20, from art/runtime/gc/collector/immune_spaces.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/compiler/optimizing/intrinsics.h: In member function 'void art::IntrinsicOptimizations::SetBit(uint32_t)': art/compiler/optimizing/intrinsics.h:177:7: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 177 | *(const_cast(value_)) |= (1 << bit); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/collector/mark_sweep.cc art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/builder.cc: In member function 'void art::HGraphBuilder::BuildIntrinsicGraph(art::ArtMethod*)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:214:3: note: in expansion of macro 'DCHECK_EQ' 214 | DCHECK_EQ(bdt_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:214:3: note: in expansion of macro 'DCHECK_EQ' 214 | DCHECK_EQ(bdt_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:214:3: note: in expansion of macro 'DCHECK_EQ' 214 | DCHECK_EQ(bdt_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:214:3: note: in expansion of macro 'DCHECK_EQ' 214 | DCHECK_EQ(bdt_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:214:3: note: in expansion of macro 'DCHECK_EQ' 214 | DCHECK_EQ(bdt_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:214:3: note: in expansion of macro 'DCHECK_EQ' 214 | DCHECK_EQ(bdt_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:214:3: note: in expansion of macro 'DCHECK_EQ' 214 | DCHECK_EQ(bdt_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:214:3: note: in expansion of macro 'DCHECK_EQ' 214 | DCHECK_EQ(bdt_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:214:3: note: in expansion of macro 'DCHECK_EQ' 214 | DCHECK_EQ(bdt_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:214:3: note: in expansion of macro 'DCHECK_EQ' 214 | DCHECK_EQ(bdt_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:214:3: note: in expansion of macro 'DCHECK_EQ' 214 | DCHECK_EQ(bdt_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:214:3: note: in expansion of macro 'DCHECK_EQ' 214 | DCHECK_EQ(bdt_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:221:3: note: in expansion of macro 'DCHECK_EQ' 221 | DCHECK_EQ(build_ssa_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:221:3: note: in expansion of macro 'DCHECK_EQ' 221 | DCHECK_EQ(build_ssa_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:221:3: note: in expansion of macro 'DCHECK_EQ' 221 | DCHECK_EQ(build_ssa_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:221:3: note: in expansion of macro 'DCHECK_EQ' 221 | DCHECK_EQ(build_ssa_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:221:3: note: in expansion of macro 'DCHECK_EQ' 221 | DCHECK_EQ(build_ssa_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:221:3: note: in expansion of macro 'DCHECK_EQ' 221 | DCHECK_EQ(build_ssa_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:221:3: note: in expansion of macro 'DCHECK_EQ' 221 | DCHECK_EQ(build_ssa_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:221:3: note: in expansion of macro 'DCHECK_EQ' 221 | DCHECK_EQ(build_ssa_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:221:3: note: in expansion of macro 'DCHECK_EQ' 221 | DCHECK_EQ(build_ssa_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::GraphAnalysisResult' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:221:3: note: in expansion of macro 'DCHECK_EQ' 221 | DCHECK_EQ(build_ssa_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/builder.cc:221:3: note: in expansion of macro 'DCHECK_EQ' 221 | DCHECK_EQ(build_ssa_result, kAnalysisSuccess); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/space/space-inl.h:25, from art/runtime/gc/collector/immune_spaces.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/optimization.cc: In function 'art::ArenaVector art::ConstructOptimizations(const OptimizationDef*, size_t, ArenaAllocator*, HGraph*, OptimizingCompilerStats*, CodeGenerator*, const DexCompilationUnit&, VariableSizedHandleScope*)': art/compiler/optimizing/optimization.cc:266:49: warning: 'accessor.art::CodeItemDataAccessor::registers_size_' may be used uninitialized [-Wmaybe-uninitialized] 266 | pass_name); | ^ In file included from art/runtime/gc/collector/concurrent_copying.cc:23: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/compiler/optimizing/optimization.cc:253:30: note: 'accessor.art::CodeItemDataAccessor::registers_size_' was declared here 253 | CodeItemDataAccessor accessor(*dex_compilation_unit.GetDexFile(), | ^~~~~~~~ art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/libdexfile/dex/dex_file.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/libdexfile/dex/bytecode_utils.h:21, from art/runtime/dex_to_dex_decompiler.cc:23: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/libartbase/base/array_ref.h:21, from art/runtime/dex_to_dex_decompiler.h:20, from art/runtime/dex_to_dex_decompiler.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/collector/partial_mark_sweep.cc host C++: libart <= art/runtime/gc/collector/semi_space.cc In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/collector/mark_sweep.h:22, from art/runtime/gc/collector/mark_sweep.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/barrier.h:32, from art/runtime/gc/collector/mark_sweep.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/compiler/optimizing/intrinsics.h: In member function 'void art::IntrinsicOptimizations::SetBit(uint32_t)': art/compiler/optimizing/intrinsics.h:177:7: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 177 | *(const_cast(value_)) |= (1 << bit); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator.h:64, from /usr/include/c++/13.2.1/bits/range_access.h:38, from /usr/include/c++/13.2.1/string_view:43, from art/runtime/common_throws.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ host C++: libart <= art/runtime/gc/collector/sticky_mark_sweep.cc libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31, from art/runtime/debug_print.cc:21: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/istream:40, from /usr/include/c++/13.2.1/sstream:40, from art/runtime/debug_print.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/gc/collector/mark_sweep.cc:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/collector/mark_sweep.cc:38: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.cc:40:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 40 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.cc:40:32: note: did you mean '-Wno-pointer-arith'? art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/stl_tree.h:63, from /usr/include/c++/13.2.1/set:62, from art/runtime/debugger.h:26: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/collector/mark_sweep.h:22, from art/runtime/gc/collector/partial_mark_sweep.h:20, from art/runtime/gc/collector/partial_mark_sweep.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/barrier.h:32, from art/runtime/gc/collector/mark_sweep.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/collector/semi_space.h:22, from art/runtime/gc/collector/semi_space-inl.h:20, from art/runtime/gc/collector/semi_space.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/gc/collector/semi_space.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc/collector/sticky_mark_sweep.h:20, from art/runtime/gc/collector/sticky_mark_sweep.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/gc/gc_cause.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/heap.cc art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/collector/partial_mark_sweep.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C++: libart <= art/runtime/gc/reference_queue.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/locks.h:23: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/mirror/object_array-alloc-inl.h:22, from art/compiler/optimizing/inliner.cc:39: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:31: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/collector/semi_space-inl.h:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/runtime/art_method.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/set:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/collector/mark_sweep.h:22, from art/runtime/gc/collector/partial_mark_sweep.h:20, from art/runtime/gc/collector/sticky_mark_sweep.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/class_table.h:25, from art/runtime/debug_print.cc:22: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/gc/scoped_gc_critical_section.cc art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/scoped_thread_state_change-inl.h:28: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/fault_handler.h:24: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/gc/gc_cause.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/compiler/optimizing/nodes.cc:29: art/compiler/optimizing/intrinsics.h: In member function 'void art::IntrinsicOptimizations::SetBit(uint32_t)': art/compiler/optimizing/intrinsics.h:177:7: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 177 | *(const_cast(value_)) |= (1 << bit); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/heap.h:28, from art/runtime/gc/heap.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/heap.h:29: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/collector/sticky_mark_sweep.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc/reference_processor.h:20, from art/runtime/gc/reference_processor.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from art/runtime/base/mutex.h:26: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/gc/accounting/bitmap.cc:24: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/gc/accounting/bitmap.h:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/reference_queue.h:24, from art/runtime/gc/reference_queue.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/gc/reference_queue.h:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/locks.h:23: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/space/bump_pointer_space.cc In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from art/libartbase/base/histogram.h:20, from art/runtime/base/timing_logger.h:20: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/reference_queue.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc/scoped_gc_critical_section.h:20, from art/runtime/gc/scoped_gc_critical_section.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/list:62, from art/runtime/gc/allocation_record.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/gc/reference_processor.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc: In member function 'virtual void art::arm::LoadClassSlowPathARMVIXL::EmitNativeCode(art::CodeGenerator*)': art/compiler/optimizing/code_generator_arm_vixl.cc:529:13: warning: passing 'short unsigned int' chooses 'int32_t' {aka 'int'} over 'uint32_t' {aka 'unsigned int'} [-Wsign-promo] 529 | __ Mov(calling_convention.GetRegisterAt(0), type_index.index_); | ^ art/compiler/optimizing/code_generator_arm_vixl.cc:529:13: warning: in call to 'vixl::aarch32::Operand::Operand(int32_t)' [-Wsign-promo] In file included from art/runtime/scoped_thread_state_change-inl.h:28: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/gc/heap.cc:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26, from art/runtime/mirror/iftable-inl.h:22: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/mirror/object_array-inl.h:29: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/compiler/optimizing/code_generator_arm_vixl.cc: In member function 'virtual void art::arm::ReadBarrierForHeapReferenceSlowPathARMVIXL::EmitNativeCode(art::CodeGenerator*)': art/compiler/optimizing/code_generator_arm_vixl.cc:817:15: warning: passing 'art::arm::ScaleFactor' chooses 'int32_t' {aka 'int'} over 'uint32_t' {aka 'unsigned int'} [-Wsign-promo] 817 | __ Lsl(index_reg, index_reg, TIMES_4); | ^ art/compiler/optimizing/code_generator_arm_vixl.cc:817:15: warning: in call to 'vixl::aarch32::Operand::Operand(int32_t)' [-Wsign-promo] In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/optimizing/code_generator.h:30, from art/compiler/optimizing/sharpening.cc:23: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/scoped_gc_critical_section.cc:20: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/compiler/optimizing/code_generator.h:31: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/compiler/optimizing/code_generator_arm_vixl.cc: In function 'void art::arm::GenerateLongDataProc(art::HDataProcWithShifterOp*, CodeGeneratorARMVIXL*)': libbase/include/android-base/logging.h:266:35: warning: passing 'vixl::aarch32::ShiftType' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1159:7: note: in expansion of macro 'DCHECK_EQ' 1159 | DCHECK_EQ(shift, ShiftType::LSR); | ^~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1159:7: note: in expansion of macro 'DCHECK_EQ' 1159 | DCHECK_EQ(shift, ShiftType::LSR); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'vixl::aarch32::ShiftType' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1159:7: note: in expansion of macro 'DCHECK_EQ' 1159 | DCHECK_EQ(shift, ShiftType::LSR); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1159:7: note: in expansion of macro 'DCHECK_EQ' 1159 | DCHECK_EQ(shift, ShiftType::LSR); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'vixl::aarch32::ShiftType' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1159:7: note: in expansion of macro 'DCHECK_EQ' 1159 | DCHECK_EQ(shift, ShiftType::LSR); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1159:7: note: in expansion of macro 'DCHECK_EQ' 1159 | DCHECK_EQ(shift, ShiftType::LSR); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'vixl::aarch32::ShiftType' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1159:7: note: in expansion of macro 'DCHECK_EQ' 1159 | DCHECK_EQ(shift, ShiftType::LSR); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1159:7: note: in expansion of macro 'DCHECK_EQ' 1159 | DCHECK_EQ(shift, ShiftType::LSR); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'vixl::aarch32::ShiftType' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1159:7: note: in expansion of macro 'DCHECK_EQ' 1159 | DCHECK_EQ(shift, ShiftType::LSR); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1159:7: note: in expansion of macro 'DCHECK_EQ' 1159 | DCHECK_EQ(shift, ShiftType::LSR); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'vixl::aarch32::ShiftType' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1159:7: note: in expansion of macro 'DCHECK_EQ' 1159 | DCHECK_EQ(shift, ShiftType::LSR); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1159:7: note: in expansion of macro 'DCHECK_EQ' 1159 | DCHECK_EQ(shift, ShiftType::LSR); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/gc/reference_queue.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/heap.cc:35: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/base/timing_logger.cc:29: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc: In function 'std::pair art::arm::GenerateLongTestConstant(art::HCondition*, bool, CodeGeneratorARMVIXL*)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1396:9: note: in expansion of macro 'DCHECK_EQ' 1396 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1396:9: note: in expansion of macro 'DCHECK_EQ' 1396 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1396:9: note: in expansion of macro 'DCHECK_EQ' 1396 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1396:9: note: in expansion of macro 'DCHECK_EQ' 1396 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1396:9: note: in expansion of macro 'DCHECK_EQ' 1396 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1396:9: note: in expansion of macro 'DCHECK_EQ' 1396 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1396:9: note: in expansion of macro 'DCHECK_EQ' 1396 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1396:9: note: in expansion of macro 'DCHECK_EQ' 1396 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1396:9: note: in expansion of macro 'DCHECK_EQ' 1396 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1396:9: note: in expansion of macro 'DCHECK_EQ' 1396 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1396:9: note: in expansion of macro 'DCHECK_EQ' 1396 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1396:9: note: in expansion of macro 'DCHECK_EQ' 1396 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:753:48: required from 'static constexpr art::ThreadOffset art::Thread::PeerOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]' art/compiler/optimizing/intrinsics_arm_vixl.cc:611:60: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1400:9: note: in expansion of macro 'DCHECK_EQ' 1400 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1400:9: note: in expansion of macro 'DCHECK_EQ' 1400 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1400:9: note: in expansion of macro 'DCHECK_EQ' 1400 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1400:9: note: in expansion of macro 'DCHECK_EQ' 1400 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1400:9: note: in expansion of macro 'DCHECK_EQ' 1400 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1400:9: note: in expansion of macro 'DCHECK_EQ' 1400 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/space/space.h:23, from art/runtime/gc/space/bump_pointer_space.h:20, from art/runtime/gc/space/bump_pointer_space.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/gc/space/space.h:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1400:9: note: in expansion of macro 'DCHECK_EQ' 1400 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1400:9: note: in expansion of macro 'DCHECK_EQ' 1400 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1400:9: note: in expansion of macro 'DCHECK_EQ' 1400 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1400:9: note: in expansion of macro 'DCHECK_EQ' 1400 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1400:9: note: in expansion of macro 'DCHECK_EQ' 1400 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1400:9: note: in expansion of macro 'DCHECK_EQ' 1400 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ host C++: libart <= art/runtime/gc/space/dlmalloc_space.cc libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1401:9: note: in expansion of macro 'DCHECK_EQ' 1401 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1401:9: note: in expansion of macro 'DCHECK_EQ' 1401 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1401:9: note: in expansion of macro 'DCHECK_EQ' 1401 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1401:9: note: in expansion of macro 'DCHECK_EQ' 1401 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1401:9: note: in expansion of macro 'DCHECK_EQ' 1401 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1401:9: note: in expansion of macro 'DCHECK_EQ' 1401 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1401:9: note: in expansion of macro 'DCHECK_EQ' 1401 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1401:9: note: in expansion of macro 'DCHECK_EQ' 1401 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1401:9: note: in expansion of macro 'DCHECK_EQ' 1401 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1401:9: note: in expansion of macro 'DCHECK_EQ' 1401 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1401:9: note: in expansion of macro 'DCHECK_EQ' 1401 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1401:9: note: in expansion of macro 'DCHECK_EQ' 1401 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc: In function 'std::pair art::arm::GenerateLongTest(art::HCondition*, bool, CodeGeneratorARMVIXL*)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1465:9: note: in expansion of macro 'DCHECK_EQ' 1465 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1465:9: note: in expansion of macro 'DCHECK_EQ' 1465 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1465:9: note: in expansion of macro 'DCHECK_EQ' 1465 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1465:9: note: in expansion of macro 'DCHECK_EQ' 1465 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1465:9: note: in expansion of macro 'DCHECK_EQ' 1465 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1465:9: note: in expansion of macro 'DCHECK_EQ' 1465 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1465:9: note: in expansion of macro 'DCHECK_EQ' 1465 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1465:9: note: in expansion of macro 'DCHECK_EQ' 1465 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1465:9: note: in expansion of macro 'DCHECK_EQ' 1465 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1465:9: note: in expansion of macro 'DCHECK_EQ' 1465 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1465:9: note: in expansion of macro 'DCHECK_EQ' 1465 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1465:9: note: in expansion of macro 'DCHECK_EQ' 1465 | DCHECK_EQ(opposite, kCondGT); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1469:9: note: in expansion of macro 'DCHECK_EQ' 1469 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1469:9: note: in expansion of macro 'DCHECK_EQ' 1469 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1469:9: note: in expansion of macro 'DCHECK_EQ' 1469 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1469:9: note: in expansion of macro 'DCHECK_EQ' 1469 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1469:9: note: in expansion of macro 'DCHECK_EQ' 1469 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1469:9: note: in expansion of macro 'DCHECK_EQ' 1469 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1469:9: note: in expansion of macro 'DCHECK_EQ' 1469 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1469:9: note: in expansion of macro 'DCHECK_EQ' 1469 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1469:9: note: in expansion of macro 'DCHECK_EQ' 1469 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ In file included from art/runtime/base/quasi_atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1469:9: note: in expansion of macro 'DCHECK_EQ' 1469 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1469:9: note: in expansion of macro 'DCHECK_EQ' 1469 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1469:9: note: in expansion of macro 'DCHECK_EQ' 1469 | DCHECK_EQ(cond, kCondGT); | ^~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1470:9: note: in expansion of macro 'DCHECK_EQ' 1470 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1470:9: note: in expansion of macro 'DCHECK_EQ' 1470 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1470:9: note: in expansion of macro 'DCHECK_EQ' 1470 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1470:9: note: in expansion of macro 'DCHECK_EQ' 1470 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1470:9: note: in expansion of macro 'DCHECK_EQ' 1470 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1470:9: note: in expansion of macro 'DCHECK_EQ' 1470 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1470:9: note: in expansion of macro 'DCHECK_EQ' 1470 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1470:9: note: in expansion of macro 'DCHECK_EQ' 1470 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1470:9: note: in expansion of macro 'DCHECK_EQ' 1470 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1470:9: note: in expansion of macro 'DCHECK_EQ' 1470 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1470:9: note: in expansion of macro 'DCHECK_EQ' 1470 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1470:9: note: in expansion of macro 'DCHECK_EQ' 1470 | DCHECK_EQ(opposite, kCondLE); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/compiler/optimizing/code_generator_arm_vixl.cc: In function 'void art::arm::GenerateEqualLong(art::HCondition*, CodeGeneratorARMVIXL*)': art/compiler/optimizing/code_generator_arm_vixl.cc:1589:59: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 1589 | DCHECK(condition == kCondEQ || condition == kCondNE) << condition; | ^~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1589:59: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/code_generator_arm_vixl.cc:1589:59: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] art/compiler/optimizing/code_generator_arm_vixl.cc:1589:59: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/code_generator_arm_vixl.cc:1589:59: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] art/compiler/optimizing/code_generator_arm_vixl.cc:1589:59: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/compiler/optimizing/code_generator.h:37: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/gc/accounting/space_bitmap.h:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/runtime/gc/space/bump_pointer_space.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/space/space.h:23, from art/runtime/gc/space/malloc_space.h:20, from art/runtime/gc/space/dlmalloc_space.h:20, from art/runtime/gc/space/dlmalloc_space-inl.h:20, from art/runtime/gc/space/dlmalloc_space.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/gc/space/space.h:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::InterruptedOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/compiler/optimizing/intrinsics_arm_vixl.cc:3042:62: required from here art/runtime/thread.h:657:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 657 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:657:9: note: in expansion of macro 'OFFSETOF_MEMBER' 657 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/space/image_space.cc art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/space/dlmalloc_space.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:20: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/gc/space/dlmalloc_space.cc:25: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/libdexfile/dex/dex_file_types.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc: In member function 'void art::arm::CodeGeneratorARMVIXL::GenerateConditionWithZero(art::IfCondition, vixl::aarch32::Register, vixl::aarch32::Register, vixl::aarch32::Register)': art/compiler/optimizing/code_generator_arm_vixl.cc:2895:48: warning: passing 'art::IfCondition' chooses 'int' over 'long unsigned int' [-Wsign-promo] 2895 | LOG(FATAL) << "Unexpected condition " << condition; | ^~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:2895:48: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/code_generator_arm_vixl.cc:2895:48: warning: passing 'art::IfCondition' chooses 'int' over 'long int' [-Wsign-promo] art/compiler/optimizing/code_generator_arm_vixl.cc:2895:48: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/compiler/optimizing/code_generator_arm_vixl.cc:2895:48: warning: passing 'art::IfCondition' chooses 'int' over 'unsigned int' [-Wsign-promo] art/compiler/optimizing/code_generator_arm_vixl.cc:2895:48: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object.h:24, from art/runtime/image.h:24, from art/runtime/gc/space/image_space.h:21, from art/runtime/gc/space/space-inl.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/space/large_object_space.cc art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/space/malloc_space.cc In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ host C++: libart <= art/runtime/gc/space/region_space.cc libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/space/rosalloc_space.cc In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/list:62, from art/runtime/gc/collector/garbage_collector.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc/accounting/space_bitmap.h:26, from art/runtime/gc/space/image_space.h:20, from art/runtime/gc/space/image_space.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/space/space.cc art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/runtime/gc/space/large_object_space.h:20, from art/runtime/gc/space/large_object_space.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart <= art/runtime/gc/space/zygote_space.cc In file included from art/runtime/base/locks.h:26, from art/runtime/gc/space/space.h:24, from art/runtime/gc/space/malloc_space.h:20, from art/runtime/gc/space/dlmalloc_space.h:20, from art/runtime/gc/space/large_object_space.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/compiler/optimizing/code_generator_arm_vixl.cc: In member function 'void art::arm::InstructionCodeGeneratorARMVIXL::GenerateMinMaxFloat(art::HInstruction*, bool)': art/compiler/optimizing/code_generator_arm_vixl.cc:4453:10: warning: passing 'uint16_t' {aka 'short unsigned int'} chooses 'int32_t' {aka 'int'} over 'uint32_t' {aka 'unsigned int'} [-Wsign-promo] 4453 | __ Movt(temp1, High16Bits(kNanFloat)); // 0x7FC0xxxx is a NaN. | ^ art/compiler/optimizing/code_generator_arm_vixl.cc:4453:10: warning: in call to 'vixl::aarch32::Operand::Operand(int32_t)' [-Wsign-promo] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/gc/task_processor.cc host C++: libart <= art/runtime/gc/verification.cc In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/gc/allocator/rosalloc.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/hidden_api.cc In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/space/space.h:23, from art/runtime/gc/space/malloc_space.h:20, from art/runtime/gc/space/malloc_space.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/gc/space/space.h:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/space/space.h:23, from art/runtime/gc/space/bump_pointer_space.h:20, from art/runtime/gc/space/bump_pointer_space-inl.h:20, from art/runtime/gc/space/region_space.cc:18: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/base/locks.h:26, from art/runtime/gc/space/space.h:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26, from art/runtime/mirror/iftable-inl.h:22: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_array-inl.h:29: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/gc/space/image_space.cc:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/runtime/gc/allocator/rosalloc.h:31, from art/runtime/gc/space/rosalloc_space.h:20, from art/runtime/gc/space/rosalloc_space-inl.h:20, from art/runtime/gc/space/rosalloc_space.cc:18: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/gc/space/large_object_space.cc:27: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/base/mutex.h:33, from art/runtime/gc/allocator/rosalloc.h:34: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/mem_map.h:28, from art/runtime/gc/space/zygote_space.h:20, from art/runtime/gc/space/zygote_space.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/gc/space/malloc_space.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/space/space.h:23, from art/runtime/gc/space/space.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/gc/space/space.h:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/space/malloc_space.cc:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/allocator/rosalloc.h:36: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/gc/task_processor.h:23, from art/runtime/gc/task_processor.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26, from art/runtime/gc/accounting/space_bitmap.h:26, from art/runtime/gc/space/zygote_space.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:759:48: required from 'static constexpr art::ThreadOffset art::Thread::CardTableOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]' art/compiler/optimizing/code_generator_arm_vixl.cc:6579:68: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/obj_ptr.h:23, from art/runtime/gc/verification.h:20, from art/runtime/gc/verification.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/art_field.h:22, from art/runtime/hidden_api.h:20, from art/runtime/hidden_api.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadFlagsOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/compiler/optimizing/code_generator_arm_vixl.cc:6657:82: required from here art/runtime/thread.h:664:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 664 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:664:9: note: in expansion of macro 'OFFSETOF_MEMBER' 664 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/space/rosalloc_space.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_field.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/space/space.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/runtime/gc/space/region_space.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/scoped_thread_state_change-inl.h:27, from art/runtime/gc/task_processor.cc:20: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/libartbase/base/atomic.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/gc/space/zygote_space.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/gc/space/zygote_space.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/compiler/optimizing/code_generator_arm_vixl.cc: In member function 'virtual void art::arm::InstructionCodeGeneratorARMVIXL::VisitLoadClass(art::HLoadClass*)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::ReadBarrierOption' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7011:7: note: in expansion of macro 'DCHECK_EQ' 7011 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7011:7: note: in expansion of macro 'DCHECK_EQ' 7011 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::ReadBarrierOption' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7011:7: note: in expansion of macro 'DCHECK_EQ' 7011 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7011:7: note: in expansion of macro 'DCHECK_EQ' 7011 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::ReadBarrierOption' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7011:7: note: in expansion of macro 'DCHECK_EQ' 7011 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7011:7: note: in expansion of macro 'DCHECK_EQ' 7011 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ReadBarrierOption' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7011:7: note: in expansion of macro 'DCHECK_EQ' 7011 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7011:7: note: in expansion of macro 'DCHECK_EQ' 7011 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ReadBarrierOption' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7011:7: note: in expansion of macro 'DCHECK_EQ' 7011 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7011:7: note: in expansion of macro 'DCHECK_EQ' 7011 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ReadBarrierOption' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7011:7: note: in expansion of macro 'DCHECK_EQ' 7011 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7011:7: note: in expansion of macro 'DCHECK_EQ' 7011 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::ReadBarrierOption' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7034:7: note: in expansion of macro 'DCHECK_EQ' 7034 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7034:7: note: in expansion of macro 'DCHECK_EQ' 7034 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::ReadBarrierOption' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7034:7: note: in expansion of macro 'DCHECK_EQ' 7034 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7034:7: note: in expansion of macro 'DCHECK_EQ' 7034 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::ReadBarrierOption' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7034:7: note: in expansion of macro 'DCHECK_EQ' 7034 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7034:7: note: in expansion of macro 'DCHECK_EQ' 7034 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ReadBarrierOption' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7034:7: note: in expansion of macro 'DCHECK_EQ' 7034 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7034:7: note: in expansion of macro 'DCHECK_EQ' 7034 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ReadBarrierOption' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7034:7: note: in expansion of macro 'DCHECK_EQ' 7034 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7034:7: note: in expansion of macro 'DCHECK_EQ' 7034 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ReadBarrierOption' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7034:7: note: in expansion of macro 'DCHECK_EQ' 7034 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:7034:7: note: in expansion of macro 'DCHECK_EQ' 7034 | DCHECK_EQ(read_barrier_option, kWithoutReadBarrier); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/libartbase/base/atomic.h:23: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/class_linker.h:34: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/gc/verification.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/list:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/runtime/hidden_api.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/compiler/optimizing/inliner.cc:297:23: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/mirror/object.h:24, from art/runtime/mirror/class.h:31: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80, from art/runtime/gc/collector/semi_space.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:28: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/locks.h:23: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ host C++: libart <= art/runtime/hprof/hprof.cc art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/image.cc art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80, from art/runtime/gc/accounting/card_table.h:20: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ host C++: libart <= art/runtime/index_bss_mapping.cc art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/oat_file.h:38, from art/runtime/gc/collector/immune_spaces.cc:25: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/mirror/object.h:24, from art/runtime/image.h:24, from art/runtime/gc/space/image_space.h:21, from art/runtime/gc/space/space-inl.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ In file included from art/runtime/gc/accounting/card_table.cc:28: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/dchecked_vector.h:24, from art/runtime/class_loader_context.h:24: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc: In function 'void art::arm::EmitGrayCheckAndFastPath(ArmVIXLAssembler&, vixl::aarch32::Register, vixl::aarch32::MemOperand&, vixl::aarch32::Label*, int32_t, vixl::aarch32::Label*)': art/compiler/optimizing/code_generator_arm_vixl.cc:9319:60: warning: passing 'art::LockWord::SizeShiftsAndMasks' chooses 'uint32_t' {aka 'unsigned int'} over 'int32_t' {aka 'int'} [-Wsign-promo] 9319 | __ Tst(ip, Operand(LockWord::kReadBarrierStateMaskShifted)); | ^ art/compiler/optimizing/code_generator_arm_vixl.cc:9319:60: warning: in call to 'vixl::aarch32::Operand::Operand(uint32_t)' [-Wsign-promo] art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc: In member function 'void art::arm::CodeGeneratorARMVIXL::CompileBakerReadBarrierThunk(art::arm::ArmVIXLAssembler&, uint32_t, std::string*)': art/compiler/optimizing/code_generator_arm_vixl.cc:9447:13: warning: passing 'art::LockWord::SizeShiftsAndMasks' chooses 'uint32_t' {aka 'unsigned int'} over 'int32_t' {aka 'int'} [-Wsign-promo] 9447 | __ Tst(ip, LockWord::kMarkBitStateMaskShifted); | ^ art/compiler/optimizing/code_generator_arm_vixl.cc:9447:13: warning: in call to 'vixl::aarch32::Operand::Operand(uint32_t)' [-Wsign-promo] art/compiler/optimizing/code_generator_arm_vixl.cc:9471:13: warning: passing 'art::LockWord::SizeShiftsAndMasks' chooses 'uint32_t' {aka 'unsigned int'} over 'int32_t' {aka 'int'} [-Wsign-promo] 9471 | __ Lsl(root_reg, ip, LockWord::kForwardingAddressShift); | ^ art/compiler/optimizing/code_generator_arm_vixl.cc:9471:13: warning: in call to 'vixl::aarch32::Operand::Operand(uint32_t)' [-Wsign-promo] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80, from art/runtime/gc/collector/mark_sweep.h:20: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/gc/space/space.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/mirror/object.h:20, from art/runtime/image.h:24, from art/runtime/image.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/mirror/object.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/art_field.h:22, from art/runtime/art_field-inl.h:20, from art/runtime/hprof/hprof.cc:41: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_field.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/libartbase/base/histogram.h:21: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/code_generator.cc: In member function 'void art::CodeGenerator::RecordPcInfo(art::HInstruction*, uint32_t, art::SlowPathCode*, bool)': art/compiler/optimizing/code_generator.cc:1095:12: warning: variable 'outer_environment_size' set but not used [-Wunused-but-set-variable] 1095 | uint32_t outer_environment_size = 0u; | ^~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/libartbase/base/hash_set.h:31: art/libartbase/base/data_hash.h: In member function 'size_t art::DataHash::operator()(const Container&) const [with Container = std::__cxx11::basic_string]': art/libartbase/base/data_hash.h:77:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 77 | k1 ^= tail[2] << 16; | ~~~^~~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:79:9: note: here 79 | case 2: | ^~~~ art/libartbase/base/data_hash.h:80:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 80 | k1 ^= tail[1] << 8; | ~~~^~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:82:9: note: here 82 | case 1: | ^~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/gc/collector/garbage_collector.h:28, from art/runtime/gc/collector/mark_sweep.h:26: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {art::TimingLogger::Timing}; _Tp = art::TimingLogger::Timing; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {art::TimingLogger::Timing}; _Tp = art::TimingLogger::Timing; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/collector/garbage_collector.cc: In member function 'uint64_t art::gc::collector::GarbageCollector::ExtractRssFromMincore(std::__cxx11::list >*)': art/runtime/gc/collector/garbage_collector.cc:127:19: warning: loop variable 'it' creates a copy from type 'const std::pair' [-Wrange-loop-construct] 127 | for (const auto it : *gc_ranges) { | ^~ art/runtime/gc/collector/garbage_collector.cc:127:19: note: use reference type to prevent copying 127 | for (const auto it : *gc_ranges) { | ^~ | & art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/runtime/mirror/object-inl.h:22, from art/runtime/image.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {double}; _Tp = double; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:66: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:223:28, inlined from 'void art::CumulativeLogger::DumpHistogram(std::ostream&) const' at art/runtime/base/timing_logger.cc:127:31: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {double}; _Tp = double; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = double; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:224:28, inlined from 'void art::CumulativeLogger::DumpHistogram(std::ostream&) const' at art/runtime/base/timing_logger.cc:127:31: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:227:30, inlined from 'void art::CumulativeLogger::DumpHistogram(std::ostream&) const' at art/runtime/base/timing_logger.cc:127:31: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {double}; _Tp = double; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = double; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:228:30, inlined from 'void art::CumulativeLogger::DumpHistogram(std::ostream&) const' at art/runtime/base/timing_logger.cc:127:31: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/list:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:26: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] host C++: libart <= art/runtime/indirect_reference_table.cc libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/list:73, from art/runtime/gc/collector/garbage_collector.h:21: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/handle.h:27, from art/compiler/optimizing/instruction_builder.h:27: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/instrumentation.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/array_ref.h:23, from art/runtime/debugger.h:30: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20, from art/runtime/gc/collector/mark_sweep-inl.h:23, from art/runtime/gc/collector/mark_sweep.cc:42: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/gc/collector/mark_sweep.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/indirect_reference_table.h:29, from art/runtime/indirect_reference_table-inl.h:20, from art/runtime/indirect_reference_table.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:34: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/gc/collector/garbage_collector.cc:37: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/gc/collector/garbage_collector.h:28: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/intern_table.cc art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/gc/reference_queue.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26, from art/runtime/mirror/iftable-inl.h:22: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ In file included from art/runtime/mirror/object_array-inl.h:29: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/indirect_reference_table-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/gc/heap.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/interpreter/interpreter.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/instrumentation.h:25, from art/runtime/instrumentation.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:31: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/interpreter/interpreter_cache.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libartbase/base/macros.h:20: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/interpreter/interpreter_common.cc art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/instrumentation.h:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/locks.h:23: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/class_accessor-inl.h:28, from art/runtime/art_method.cc:28: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/intern_table.h:22, from art/runtime/intern_table.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/runtime/intern_table.h:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/collector/sticky_mark_sweep.cc:24: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/gc/collector/garbage_collector.h:28, from art/runtime/gc/collector/mark_sweep.h:26: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/scoped_gc_critical_section.cc:21: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/deque:62, from art/runtime/gc/space/region_space.cc:16: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/instrumentation.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/bytecode_utils.h:23, from art/compiler/optimizing/instruction_builder.cc:27: art/libdexfile/dex/dex_instruction-inl.h: In member function 'uint32_t art::Instruction::GetVarArgs(uint32_t*, uint16_t) const': art/libdexfile/dex/dex_instruction-inl.h:537:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 537 | arg[4] = InstA(inst_data); | ~~~~~~~^~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:539:5: note: here 539 | case 4: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:540:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 540 | arg[3] = (regList >> 12) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:542:5: note: here 542 | case 3: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:543:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 543 | arg[2] = (regList >> 8) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:545:5: note: here 545 | case 2: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:546:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 546 | arg[1] = (regList >> 4) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:548:5: note: here 548 | case 1: | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/interpreter/interpreter.h:20, from art/runtime/interpreter/interpreter.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/deque:76: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/hidden_api.h:21: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/runtime/art_field.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/intern_table.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/interpreter/interpreter_cache.h:24, from art/runtime/interpreter/interpreter_cache.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/interpreter/interpreter.h:20, from art/runtime/interpreter/interpreter_common.h:20, from art/runtime/interpreter/interpreter_common.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:28: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/thread.h:28, from art/runtime/thread-inl.h:20, from art/runtime/interpreter/interpreter_cache.cc:18: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ host C++: libart <= art/runtime/interpreter/interpreter_intrinsics.cc art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/handle_scope-inl.h:25, from art/runtime/common_dex_operations.h:29, from art/runtime/interpreter/interpreter.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/interpreter/interpreter_switch_impl0.cc art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/art_method.cc:39: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ In file included from art/libartbase/base/length_prefixed_array.h:26, from art/runtime/index_bss_mapping.cc:22: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/runtime/index_bss_mapping.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/runtime.h:38, from art/runtime/oat_file.h:38, from art/runtime/class_loader_context.h:28: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from /usr/include/c++/13.2.1/cstddef:50, from art/libdexfile/dex/dex_file_types.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/nodes.cc: In member function 'art::HConstant* art::HGraph::GetConstant(art::DataType::Type, int64_t, uint32_t)': libbase/include/android-base/logging.h:329:3: warning: this statement may fall through [-Wimplicit-fallthrough=] 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~ art/compiler/optimizing/nodes.cc:705:7: note: in expansion of macro 'DCHECK' 705 | DCHECK(IsUint<1>(value)); | ^~~~~~ art/compiler/optimizing/nodes.cc:707:5: note: here 707 | case DataType::Type::kUint8: | ^~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/interpreter/interpreter_common.h:32: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47, from art/runtime/instrumentation.cc:38: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/interpreter/interpreter_common.h:32, from art/runtime/interpreter/interpreter.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/gc/accounting/space_bitmap.h:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ host C++: libart <= art/runtime/interpreter/interpreter_switch_impl1.cc /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/jvalue.h:20, from art/runtime/interpreter/interpreter_intrinsics.h:20, from art/runtime/interpreter/interpreter_intrinsics.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/dex_cache.h:24: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/interpreter/interpreter_switch_impl.h:20, from art/runtime/interpreter/interpreter_switch_impl-inl.h:20, from art/runtime/interpreter/interpreter_switch_impl0.cc:20: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/entrypoints/entrypoint_utils-inl.h:41: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/interpreter/interpreter_switch_impl2.cc art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | In file included from art/runtime/base/mutex.h:28: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ host C++: libart <= art/runtime/interpreter/interpreter_switch_impl3.cc In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:34: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/length_prefixed_array.h:26, from art/runtime/image.cc:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/iterator:61, from art/libartbase/base/iteration_range.h:20, from art/runtime/image.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/interpreter/interpreter_common.h:32, from art/runtime/interpreter/interpreter_switch_impl-inl.h:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:34: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/interpreter/lock_count_data.cc art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/interpreter/interpreter_switch_impl.h:20, from art/runtime/interpreter/interpreter_switch_impl-inl.h:20, from art/runtime/interpreter/interpreter_switch_impl3.cc:20: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/interpreter/interpreter_switch_impl.h:20, from art/runtime/interpreter/interpreter_switch_impl-inl.h:20, from art/runtime/interpreter/interpreter_switch_impl2.cc:20: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/gc/space/dlmalloc_space.cc:26: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/gc/space/space.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/interpreter/interpreter_common.h:32, from art/runtime/interpreter/interpreter_switch_impl-inl.h:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/allocator/rosalloc.h:29: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/runtime/class_linker.cc:44: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24, from art/runtime/oat_file-inl.h:23, from art/runtime/art_method.cc:48: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/libartbase/base/enums.h:20, from art/runtime/image.h:22: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/libartbase/base/histogram.h:21, from art/runtime/gc/collector/garbage_collector.h:23: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/stl_tree.h:63, from /usr/include/c++/13.2.1/set:62, from art/runtime/hprof/hprof.cc:36: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:66: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void art::gc::collector::GarbageCollector::RegisterPause(uint64_t)' at art/runtime/gc/collector/garbage_collector.cc:79:48: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void art::gc::collector::GarbageCollector::RegisterPause(uint64_t)' at art/runtime/gc/collector/garbage_collector.cc:79:48, inlined from 'art::gc::collector::GarbageCollector::ScopedPause::~ScopedPause()' at art/runtime/gc/collector/garbage_collector.cc:250:28: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/histogram.h:23, from art/runtime/gc/collector/garbage_collector.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/interpreter/shadow_frame.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/interpreter/lock_count_data.h:23, from art/runtime/interpreter/lock_count_data.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/interpreter/interpreter_common.h:32, from art/runtime/interpreter/interpreter_switch_impl-inl.h:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/interpreter/interpreter_common.h:32, from art/runtime/interpreter/interpreter_switch_impl-inl.h:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/memory_tool_malloc_space-inl.h:24, from art/runtime/gc/space/dlmalloc_space.cc:27: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/class_table.cc:89:36: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {double}; _Tp = double; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:974: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 974 | #pragma clang diagnostic push | art/runtime/interpreter/interpreter_switch_impl-inl.h:975: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 975 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:1039: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 1039 | #pragma clang diagnostic pop | art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/compiler/optimizing/stack_map_stream.cc:288:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 288 | ALWAYS_INLINE static void EncodeTable(Writer& out, const Builder& bit_table) { | ^~~~~~~~~~~ art/compiler/optimizing/stack_map_stream.cc:288:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/compiler/optimizing/stack_map_stream.cc:288:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/compiler/optimizing/stack_map_stream.cc:288:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/compiler/optimizing/stack_map_stream.cc:288:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/compiler/optimizing/stack_map_stream.cc:288:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/compiler/optimizing/stack_map_stream.cc:288:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80, from art/runtime/gc/space/space.h:20: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/runtime/mirror/object-inl.h:22, from art/runtime/interpreter/lock_count_data.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:223:28, inlined from 'virtual void art::gc::collector::GarbageCollector::DumpPerformanceInfo(std::ostream&)' at art/runtime/gc/collector/garbage_collector.cc:298:39: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {double}; _Tp = double; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = double; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:224:28, inlined from 'virtual void art::gc::collector::GarbageCollector::DumpPerformanceInfo(std::ostream&)' at art/runtime/gc/collector/garbage_collector.cc:298:39: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:227:30, inlined from 'virtual void art::gc::collector::GarbageCollector::DumpPerformanceInfo(std::ostream&)' at art/runtime/gc/collector/garbage_collector.cc:298:39: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {double}; _Tp = double; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = double; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:228:30, inlined from 'virtual void art::gc::collector::GarbageCollector::DumpPerformanceInfo(std::ostream&)' at art/runtime/gc/collector/garbage_collector.cc:298:39: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24, from art/runtime/cha.h:27, from art/runtime/class_linker.cc:53: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/space.cc:25: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:974: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 974 | #pragma clang diagnostic push | art/runtime/interpreter/interpreter_switch_impl-inl.h:975: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 975 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/runtime/interpreter/interpreter_switch_impl-inl.h:1039: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 1039 | #pragma clang diagnostic pop | In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20, from art/runtime/gc/space/malloc_space.cc:32: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/gc/space/space.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80, from art/runtime/gc/allocator/rosalloc.h:23: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/memory_tool_malloc_space-inl.h:24, from art/runtime/gc/space/rosalloc_space.cc:26: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_set.h:33, from /usr/include/c++/13.2.1/unordered_set:41, from art/runtime/intern_table.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:974: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 974 | #pragma clang diagnostic push | art/runtime/interpreter/interpreter_switch_impl-inl.h:975: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 975 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/runtime/interpreter/interpreter_switch_impl-inl.h:1039: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 1039 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80, from art/runtime/gc/task_processor.h:20: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/interpreter/shadow_frame.h:24, from art/runtime/interpreter/shadow_frame.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:974: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 974 | #pragma clang diagnostic push | art/runtime/interpreter/interpreter_switch_impl-inl.h:975: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 975 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/runtime/interpreter/interpreter_switch_impl-inl.h:1039: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 1039 | #pragma clang diagnostic pop | art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/set:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/mirror/class-refvisitor-inl.h:22, from art/runtime/mirror/object-refvisitor-inl.h:22, from art/runtime/gc/collector/mark_sweep-inl.h:24: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/collector/garbage_collector.h:28, from art/runtime/gc/collector/mark_sweep.h:26, from art/runtime/gc/collector/mark_sweep-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/class_table.h:25, from art/runtime/class_table-inl.h:20, from art/runtime/mirror/class_loader-inl.h:22, from art/runtime/class_loader_context.cc:34: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/cha.cc:28: art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/interpreter/interpreter.h:21: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void art::gc::collector::GarbageCollector::RegisterPause(uint64_t)' at art/runtime/gc/collector/garbage_collector.cc:79:48, inlined from 'void art::gc::collector::GarbageCollector::Run(art::gc::GcCause, bool)' at art/runtime/gc/collector/garbage_collector.cc:177:18: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/mirror/class-refvisitor-inl.h:22, from art/runtime/mirror/object-refvisitor-inl.h:22, from art/runtime/gc/accounting/mod_union_table.cc:30: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/runtime.h:38, from art/runtime/mirror/array-inl.h:27: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/mem_map.h:20: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/interpreter/shadow_frame.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/collector/garbage_collector.h:28: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/scoped_thread_state_change-inl.h:28: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/indirect_reference_table.h:32, from art/runtime/jni/jni_env_ext.h:24, from art/runtime/jni/jni_env_ext-inl.h:20, from art/runtime/scoped_thread_state_change-inl.h:26: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_table.h:28: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/interpreter/interpreter.h:21: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/heap.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/zygote_space.cc:24: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/rosalloc.cc: In member function 'void* art::gc::allocator::RosAlloc::AllocPages(art::Thread*, size_t, uint8_t)': art/runtime/gc/allocator/rosalloc.cc:293:13: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::gc::allocator::RosAlloc::FreePageRun' with no trivial copy-assignment [-Wclass-memaccess] 293 | memset(res, 0, kPageSize); | ~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/rosalloc.h:47:9: note: 'class art::gc::allocator::RosAlloc::FreePageRun' declared here 47 | class FreePageRun { | ^~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/mirror/object_array-alloc-inl.h:22, from art/runtime/class_loader_context.cc:35: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/interpreter/interpreter_common.h:39: art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/interpreter/unstarted_runtime.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class_loader.h:22, from art/runtime/class_loader_context.h:27: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc: In function 'std::pair art::arm::GenerateLongTestConstant(art::HCondition*, bool, CodeGeneratorARMVIXL*)': art/compiler/optimizing/code_generator_arm_vixl.cc:1333:29: warning: this statement may fall through [-Wimplicit-fallthrough=] 1333 | ret = std::make_pair(ne, eq); | ~~~~~~~~~~~~~~^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1335:7: note: here 1335 | case kCondEQ: | ^~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1346:29: warning: this statement may fall through [-Wimplicit-fallthrough=] 1346 | ret = std::make_pair(ne, eq); | ~~~~~~~~~~~~~~^~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1348:7: note: here 1348 | case kCondAE: | ^~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1406:12: warning: this statement may fall through [-Wimplicit-fallthrough=] 1406 | value++; | ~~~~~^~ art/compiler/optimizing/code_generator_arm_vixl.cc:1408:5: note: here 1408 | case kCondGE: | ^~~~ art/compiler/optimizing/code_generator_arm_vixl.cc: In function 'std::pair art::arm::GenerateLongTest(art::HCondition*, bool, CodeGeneratorARMVIXL*)': art/compiler/optimizing/code_generator_arm_vixl.cc:1475:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 1475 | std::swap(left, right); | ~~~~~~~~~^~~~~~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:1477:5: note: here 1477 | case kCondGE: | ^~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/list:62, from art/runtime/instrumentation.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/common_dex_operations.h:22: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/class_accessor-inl.h:28, from art/runtime/class_linker.cc:61: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/class_reference.h:23, from art/runtime/compiler_callbacks.h:21, from art/runtime/class_linker.cc:58: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method.cc:111:63: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method.cc:113:72: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc: In member function 'void art::arm::CodeGeneratorARMVIXL::GenerateConditionWithZero(art::IfCondition, vixl::aarch32::Register, vixl::aarch32::Register, vixl::aarch32::Register)': art/compiler/optimizing/code_generator_arm_vixl.cc:2880:10: warning: this statement may fall through [-Wimplicit-fallthrough=] 2880 | in = out; | ~~~^~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:2882:5: note: here 2882 | case kCondLT: | ^~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/compiler/optimizing/code_generator_arm_vixl.cc: In function 'void art::arm::GenerateConditionIntegralOrNonPrimitive(art::HCondition*, CodeGeneratorARMVIXL*)': art/compiler/optimizing/code_generator_arm_vixl.cc:1709:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 1709 | } | ^ art/compiler/optimizing/code_generator_arm_vixl.cc:1712:9: note: here 1712 | case kCondEQ: | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc: In function 'void art::arm::GenerateConditionLong(art::HCondition*, CodeGeneratorARMVIXL*)': art/compiler/optimizing/code_generator_arm_vixl.cc:1636:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 1636 | } | ^ art/compiler/optimizing/code_generator_arm_vixl.cc:1639:9: note: here 1639 | case kCondEQ: | ^~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38, from art/compiler/optimizing/nodes.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc: In member function 'bool art::arm::LocationsBuilderARMVIXL::CanEncodeConstantAsImmediate(art::HConstant*, art::arm::Opcode)': art/compiler/optimizing/code_generator_arm_vixl.cc:5565:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 5565 | opcode = ADD; | ~~~~~~~^~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/compiler/optimizing/code_generator_arm_vixl.cc:5567:7: note: here 5567 | case ADD: | ^~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/interpreter/interpreter.h:21, from art/runtime/interpreter/interpreter_common.h:20: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/debugger.cc:56: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/dex/dex_file_annotations.cc:32: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/java_frame_root_info.cc In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/common_dex_operations.h:25: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/interpreter/interpreter_switch_impl.h:22: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/allocation_record.h:24: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:31: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/libartbase/base/atomic.h:23: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/rosalloc.cc: In member function 'void art::gc::allocator::RosAlloc::Run::ZeroHeaderAndSlotHeaders()': art/runtime/gc/allocator/rosalloc.cc:950:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::gc::allocator::RosAlloc::Run'; use assignment or value-initialization instead [-Wclass-memaccess] 950 | memset(this, 0, headerSizes[idx]); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/rosalloc.h:350:9: note: 'class art::gc::allocator::RosAlloc::Run' declared here 350 | class Run { | ^~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/interpreter/interpreter_switch_impl.h:22: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/interpreter/interpreter.h:20, from art/runtime/interpreter/unstarted_runtime.h:20, from art/runtime/interpreter/unstarted_runtime.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/java_frame_root_info.h:22, from art/runtime/java_frame_root_info.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/interpreter/interpreter_switch_impl.h:23: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/mirror/class-refvisitor-inl.h:22, from art/runtime/mirror/object-refvisitor-inl.h:22, from art/runtime/gc/collector/mark_sweep-inl.h:24: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/collector/garbage_collector.h:28, from art/runtime/gc/collector/mark_sweep.h:26: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24, from art/runtime/fault_handler.cc:30: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/scoped_thread_state_change-inl.h:28, from art/runtime/gc/space/large_object_space.cc:34: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/jdwp/jdwp_event.cc art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/interpreter/interpreter_switch_impl.h:22: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/jdwp/jdwp_expand_buf.cc In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/jdwp/jdwp_handler.cc In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/interpreter/interpreter_switch_impl.h:22: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80, from art/runtime/interpreter/lock_count_data.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/interpreter/unstarted_runtime.cc:32: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/class_loader_context.cc: In function '_jclass* art::GetClassLoaderClass(ClassLoaderContext::ClassLoaderType)': art/runtime/class_loader_context.cc:691:49: warning: passing 'art::ClassLoaderContext::ClassLoaderType' chooses 'int' over 'long unsigned int' [-Wsign-promo] 691 | LOG(FATAL) << "Invalid class loader type " << type; | ^~~~ art/runtime/class_loader_context.cc:691:49: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/class_loader_context.cc:691:49: warning: passing 'art::ClassLoaderContext::ClassLoaderType' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/class_loader_context.cc:691:49: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/class_loader_context.cc:691:49: warning: passing 'art::ClassLoaderContext::ClassLoaderType' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/class_loader_context.cc:691:49: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetDexFieldIndex()': art/runtime/mirror/field.h:42:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:42:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetAccessFlags()': art/runtime/mirror/field.h:48:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:48:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/list:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'int32_t art::mirror::Field::GetOffset()': art/runtime/mirror/field.h:68:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:68:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetDeclaringClass()': art/runtime/mirror/field-inl.h:33:56: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:33:32: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetType()': art/runtime/mirror/field-inl.h:41:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:41:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/gc/allocation_record.cc:25: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_utils.h:23, from art/runtime/interpreter/interpreter_cache.h:23: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/interpreter/interpreter_switch_impl.h:23: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_loader_context.cc: In static member function 'static const char* art::ClassLoaderContext::GetClassLoaderTypeName(ClassLoaderType)': art/runtime/class_loader_context.cc:860:53: warning: passing 'art::ClassLoaderContext::ClassLoaderType' chooses 'int' over 'long unsigned int' [-Wsign-promo] 860 | LOG(FATAL) << "Invalid class loader type " << type; | ^~~~ art/runtime/class_loader_context.cc:860:53: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/class_loader_context.cc:860:53: warning: passing 'art::ClassLoaderContext::ClassLoaderType' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/class_loader_context.cc:860:53: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/class_loader_context.cc:860:53: warning: passing 'art::ClassLoaderContext::ClassLoaderType' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/class_loader_context.cc:860:53: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/class_linker.cc:93: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:31: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/jdwp/jdwp.h:20, from art/runtime/jdwp/jdwp_event.h:22, from art/runtime/jdwp/jdwp_event.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/base/mutex.h:33, from art/runtime/jdwp/jdwp.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/interpreter/interpreter_switch_impl.h:23: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/jdwp/jdwp_main.cc art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] host C++: libart <= art/runtime/jdwp/jdwp_request.cc art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/allocation_listener.h:25, from art/runtime/gc/heap.cc:28: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/interpreter/interpreter_switch_impl.h:23: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/jdwp/jdwp_handler.cc:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/jdwp/jdwp_handler.cc:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from art/runtime/indirect_reference_table.h:24: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_table.h:25, from art/runtime/class_table-inl.h:20, from art/runtime/mirror/class_loader-inl.h:22, from art/runtime/mirror/object-refvisitor-inl.h:23: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47, from art/runtime/interpreter/unstarted_runtime.cc:45: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/jdwp/jdwp_event.cc:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ host C++: libart <= art/runtime/jdwp/jdwp_socket.cc libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/intern_table.h:24, from art/runtime/gc/collector/semi_space.cc:41: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/common_throws.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/debugger.h:39, from art/runtime/jdwp/jdwp_handler.cc:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/jdwp/jdwp_main.cc:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object.h:24, from art/runtime/debug_print.h:21: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/jdwp/jdwp.h:20, from art/runtime/jdwp/jdwp_request.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:33, from art/runtime/jdwp/jdwp.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26, from art/runtime/class_linker.h:29, from art/runtime/debugger.h:31, from art/runtime/jdwp/jdwp_main.cc:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27, from art/runtime/cha.h:25: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/common_throws.cc: In function 'bool art::IsValidImplicitCheck(uintptr_t, const Instruction&)': art/runtime/common_throws.cc:488:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 488 | if (kEmitCompilerReadBarrier && IsValidReadBarrierImplicitCheck(addr)) { | ^~ art/runtime/common_throws.cc:492:5: note: here 492 | case Instruction::IGET: | ^~~~ art/runtime/common_throws.cc:512:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 512 | if (kEmitCompilerReadBarrier && IsValidReadBarrierImplicitCheck(addr)) { | ^~ art/runtime/common_throws.cc:516:5: note: here 516 | case Instruction::IGET_QUICK: | ^~~~ art/runtime/common_throws.cc:536:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 536 | if (kEmitCompilerReadBarrier && IsValidReadBarrierImplicitCheck(addr)) { | ^~ art/runtime/common_throws.cc:540:5: note: here 540 | case Instruction::AGET: | ^~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29, from art/runtime/jdwp/jdwp_handler.cc:36: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/mirror/class-refvisitor-inl.h:22, from art/runtime/mirror/object-refvisitor-inl.h:22, from art/runtime/gc/collector/mark_sweep-inl.h:24, from art/runtime/gc/collector/semi_space.cc:43: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/collector/garbage_collector.h:28, from art/runtime/gc/collector/semi_space.h:25: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/debugger.h:39, from art/runtime/jdwp/jdwp_priv.h:22, from art/runtime/jdwp/jdwp_request.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/jdwp/object_registry.cc art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/jit/debugger_interface.cc In file included from art/runtime/debugger.h:39: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/interpreter/shadow_frame.h:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/logging.h:22, from art/runtime/jdwp/jdwp_socket.cc:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/debugger.cc:73: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from art/runtime/mirror/emulated_stack_frame.h:24, from art/runtime/class_linker.cc:103: art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::CallsiteTypeOffset()': art/runtime/mirror/emulated_stack_frame.h:70:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 70 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, callsite_type_)); art/runtime/mirror/emulated_stack_frame.h:70:25: note: in expansion of macro 'OFFSETOF_MEMBER' 70 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, callsite_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::TypeOffset()': art/runtime/mirror/emulated_stack_frame.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, type_)); art/runtime/mirror/emulated_stack_frame.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::ReferencesOffset()': art/runtime/mirror/emulated_stack_frame.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, references_)); art/runtime/mirror/emulated_stack_frame.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, references_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::StackFrameOffset()': art/runtime/mirror/emulated_stack_frame.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, stack_frame_)); art/runtime/mirror/emulated_stack_frame.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, stack_frame_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetDexFieldIndex()': art/runtime/mirror/field.h:42:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:42:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetAccessFlags()': art/runtime/mirror/field.h:48:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:48:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/field.h: In member function 'int32_t art::mirror::Field::GetOffset()': art/runtime/mirror/field.h:68:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:68:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26, from art/runtime/class_linker.h:29, from art/runtime/debugger.h:31, from art/runtime/jdwp/jdwp_priv.h:22, from art/runtime/jdwp/jdwp_socket.cc:32: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29, from art/runtime/jdwp/jdwp_main.cc:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/intern_table.h:24, from art/runtime/gc/collector/concurrent_copying.cc:40: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.h: In member function 'int32_t art::mirror::StackTraceElement::GetLineNumber()': art/runtime/mirror/stack_trace_element.h:39:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 39 | return GetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.h:39:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 39 | return GetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::VarTypeOffset()': art/runtime/mirror/var_handle.h:163:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); art/runtime/mirror/var_handle.h:163:25: note: in expansion of macro 'OFFSETOF_MEMBER' 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType0Offset()': art/runtime/mirror/var_handle.h:167:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); art/runtime/mirror/var_handle.h:167:25: note: in expansion of macro 'OFFSETOF_MEMBER' 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType1Offset()': art/runtime/mirror/var_handle.h:171:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); art/runtime/mirror/var_handle.h:171:25: note: in expansion of macro 'OFFSETOF_MEMBER' 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::AccessModesBitMaskOffset()': art/runtime/mirror/var_handle.h:175:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); art/runtime/mirror/var_handle.h:175:25: note: in expansion of macro 'OFFSETOF_MEMBER' 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::FieldVarHandle::ArtFieldOffset()': art/runtime/mirror/var_handle.h:202:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::FieldVarHandle' is conditionally-supported [-Winvalid-offsetof] 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); art/runtime/mirror/var_handle.h:202:25: note: in expansion of macro 'OFFSETOF_MEMBER' 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteArrayViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:242:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteArrayViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:242:25: note: in expansion of macro 'OFFSETOF_MEMBER' 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteBufferViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:282:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteBufferViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:282:25: note: in expansion of macro 'OFFSETOF_MEMBER' 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/dex/dex_file_annotations.cc:97:38: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_set:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/jit/jit.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/debugger.h:39: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/jit/jit_code_cache.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/type_reference.h:25, from art/libprofile/./profile/profile_compilation_info.h:35, from art/runtime/class_linker.cc:130: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/arch/instruction_set_features.h:24, from art/runtime/jit/debugger_interface.h:23, from art/runtime/jit/debugger_interface.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/handle.h:23, from art/runtime/jdwp/object_registry.h:27, from art/runtime/jdwp/object_registry.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/common_dex_operations.h:39: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/jit/debugger_interface.h:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/handle_scope-inl.h:25, from art/runtime/jdwp/object_registry.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_table.h:25, from art/runtime/class_table-inl.h:20, from art/runtime/mirror/class_loader-inl.h:22, from art/runtime/mirror/object-refvisitor-inl.h:23: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/jit/profiling_info.cc art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/jit/debugger_interface.cc:27: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/jit/debugger_interface.cc:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/time_utils.h:26, from art/libartbase/base/histogram-inl.h:30, from art/runtime/jit/jit.h:20, from art/runtime/jit/jit.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29, from art/runtime/jdwp/object_registry.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/gc/reference_queue.h:28: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/iftable-inl.h:21: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/jit/profiling_info.h:23, from art/runtime/jit/profiling_info.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/gc/allocator/rosalloc.h:29: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_containers.h:27, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/jit/jit_code_cache.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/data_hash.h:20, from art/libartbase/base/hash_set.h:31, from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/jit/jit.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-refvisitor-inl.h:82:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::RememberedSetReferenceVisitor; JavaLangRefVisitor = art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/gc/accounting/remembered_set.cc:125:25: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/jit/profiling_info.h:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/jit/profile_saver.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/hprof/hprof.cc:38: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/java_frame_root_info.cc:19: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc: In member function 'void art::gc::collector::ConcurrentCopying::PushOntoLocalMarkStack(art::mirror::Object*)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::gc::collector::ConcurrentCopying::MarkStackMode' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:1210:3: note: in expansion of macro 'DCHECK_EQ' 1210 | DCHECK_EQ(mark_stack_mode_.load(std::memory_order_relaxed), kMarkStackModeThreadLocal); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:1210:3: note: in expansion of macro 'DCHECK_EQ' 1210 | DCHECK_EQ(mark_stack_mode_.load(std::memory_order_relaxed), kMarkStackModeThreadLocal); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::gc::collector::ConcurrentCopying::MarkStackMode' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:1210:3: note: in expansion of macro 'DCHECK_EQ' 1210 | DCHECK_EQ(mark_stack_mode_.load(std::memory_order_relaxed), kMarkStackModeThreadLocal); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:1210:3: note: in expansion of macro 'DCHECK_EQ' 1210 | DCHECK_EQ(mark_stack_mode_.load(std::memory_order_relaxed), kMarkStackModeThreadLocal); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::gc::collector::ConcurrentCopying::MarkStackMode' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:1210:3: note: in expansion of macro 'DCHECK_EQ' 1210 | DCHECK_EQ(mark_stack_mode_.load(std::memory_order_relaxed), kMarkStackModeThreadLocal); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:1210:3: note: in expansion of macro 'DCHECK_EQ' 1210 | DCHECK_EQ(mark_stack_mode_.load(std::memory_order_relaxed), kMarkStackModeThreadLocal); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::gc::collector::ConcurrentCopying::MarkStackMode' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:1210:3: note: in expansion of macro 'DCHECK_EQ' 1210 | DCHECK_EQ(mark_stack_mode_.load(std::memory_order_relaxed), kMarkStackModeThreadLocal); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:1210:3: note: in expansion of macro 'DCHECK_EQ' 1210 | DCHECK_EQ(mark_stack_mode_.load(std::memory_order_relaxed), kMarkStackModeThreadLocal); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::gc::collector::ConcurrentCopying::MarkStackMode' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:1210:3: note: in expansion of macro 'DCHECK_EQ' 1210 | DCHECK_EQ(mark_stack_mode_.load(std::memory_order_relaxed), kMarkStackModeThreadLocal); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:1210:3: note: in expansion of macro 'DCHECK_EQ' 1210 | DCHECK_EQ(mark_stack_mode_.load(std::memory_order_relaxed), kMarkStackModeThreadLocal); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::gc::collector::ConcurrentCopying::MarkStackMode' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:1210:3: note: in expansion of macro 'DCHECK_EQ' 1210 | DCHECK_EQ(mark_stack_mode_.load(std::memory_order_relaxed), kMarkStackModeThreadLocal); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc:1210:3: note: in expansion of macro 'DCHECK_EQ' 1210 | DCHECK_EQ(mark_stack_mode_.load(std::memory_order_relaxed), kMarkStackModeThreadLocal); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26, from art/runtime/mirror/iftable-inl.h:22: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_array-inl.h:29: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/jit/jit_code_cache.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In instantiation of 'uint32_t art::mirror::Class::GetReferenceInstanceOffsets() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:913:55: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::RememberedSetReferenceVisitor; JavaLangRefVisitor = art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/gc/accounting/remembered_set.cc:125:25: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object.h:24, from art/runtime/mirror/class.h:31: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/interpreter/interpreter.h:21: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/jit/profiling_info.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C++: libart <= art/runtime/jni/check_jni.cc art/runtime/mirror/class_loader.h: In instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class_loader-inl.h:41:64: required from 'void art::mirror::ClassLoader::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitClasses = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/mirror/object-refvisitor-inl.h:70:58: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::RememberedSetReferenceVisitor; JavaLangRefVisitor = art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/gc/accounting/remembered_set.cc:125:25: required from here art/runtime/mirror/class_loader.h:48:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetType(art::ObjPtr) [with bool kTransactionActive = false]': art/runtime/mirror/field-inl.h:89:35: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = false]' art/runtime/dex/dex_file_annotations.cc:567:34: required from 'bool art::{anonymous}::ProcessAnnotationValue(const ClassData&, const uint8_t**, art::DexFile::AnnotationValue*, art::Handle, art::DexFile::AnnotationResultStyle) [with bool kTransactionActive = false; uint8_t = unsigned char]' art/runtime/dex/dex_file_annotations.cc:734:37: required from here art/runtime/mirror/field-inl.h:104:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:104:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetDeclaringClass(art::ObjPtr) [with bool kTransactionActive = false]': art/runtime/mirror/field-inl.h:90:45: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = false]' art/runtime/dex/dex_file_annotations.cc:567:34: required from 'bool art::{anonymous}::ProcessAnnotationValue(const ClassData&, const uint8_t**, art::DexFile::AnnotationValue*, art::Handle, art::DexFile::AnnotationResultStyle) [with bool kTransactionActive = false; uint8_t = unsigned char]' art/runtime/dex/dex_file_annotations.cc:734:37: required from here art/runtime/mirror/field-inl.h:99:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:99:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetAccessFlags(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:91:42: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = false]' art/runtime/dex/dex_file_annotations.cc:567:34: required from 'bool art::{anonymous}::ProcessAnnotationValue(const ClassData&, const uint8_t**, art::DexFile::AnnotationValue*, art::Handle, art::DexFile::AnnotationResultStyle) [with bool kTransactionActive = false; uint8_t = unsigned char]' art/runtime/dex/dex_file_annotations.cc:734:37: required from here art/runtime/mirror/field.h:98:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:98:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetDexFieldIndex(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:92:44: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = false]' art/runtime/dex/dex_file_annotations.cc:567:34: required from 'bool art::{anonymous}::ProcessAnnotationValue(const ClassData&, const uint8_t**, art::DexFile::AnnotationValue*, art::Handle, art::DexFile::AnnotationResultStyle) [with bool kTransactionActive = false; uint8_t = unsigned char]' art/runtime/dex/dex_file_annotations.cc:734:37: required from here art/runtime/mirror/field.h:103:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:103:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetOffset(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:93:37: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = false]' art/runtime/dex/dex_file_annotations.cc:567:34: required from 'bool art::{anonymous}::ProcessAnnotationValue(const ClassData&, const uint8_t**, art::DexFile::AnnotationValue*, art::Handle, art::DexFile::AnnotationResultStyle) [with bool kTransactionActive = false; uint8_t = unsigned char]' art/runtime/dex/dex_file_annotations.cc:734:37: required from here art/runtime/mirror/field.h:108:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:108:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetType(art::ObjPtr) [with bool kTransactionActive = true]': art/runtime/mirror/field-inl.h:89:35: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = true]' art/runtime/dex/dex_file_annotations.cc:567:34: required from 'bool art::{anonymous}::ProcessAnnotationValue(const ClassData&, const uint8_t**, art::DexFile::AnnotationValue*, art::Handle, art::DexFile::AnnotationResultStyle) [with bool kTransactionActive = true; uint8_t = unsigned char]' art/runtime/dex/dex_file_annotations.cc:846:37: required from here art/runtime/mirror/field-inl.h:104:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:104:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetDeclaringClass(art::ObjPtr) [with bool kTransactionActive = true]': art/runtime/mirror/field-inl.h:90:45: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = true]' art/runtime/dex/dex_file_annotations.cc:567:34: required from 'bool art::{anonymous}::ProcessAnnotationValue(const ClassData&, const uint8_t**, art::DexFile::AnnotationValue*, art::Handle, art::DexFile::AnnotationResultStyle) [with bool kTransactionActive = true; uint8_t = unsigned char]' art/runtime/dex/dex_file_annotations.cc:846:37: required from here art/runtime/mirror/field-inl.h:99:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:99:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetAccessFlags(uint32_t) [with bool kTransactionActive = true; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:91:42: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = true]' art/runtime/dex/dex_file_annotations.cc:567:34: required from 'bool art::{anonymous}::ProcessAnnotationValue(const ClassData&, const uint8_t**, art::DexFile::AnnotationValue*, art::Handle, art::DexFile::AnnotationResultStyle) [with bool kTransactionActive = true; uint8_t = unsigned char]' art/runtime/dex/dex_file_annotations.cc:846:37: required from here art/runtime/mirror/field.h:98:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:98:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetDexFieldIndex(uint32_t) [with bool kTransactionActive = true; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:92:44: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = true]' art/runtime/dex/dex_file_annotations.cc:567:34: required from 'bool art::{anonymous}::ProcessAnnotationValue(const ClassData&, const uint8_t**, art::DexFile::AnnotationValue*, art::Handle, art::DexFile::AnnotationResultStyle) [with bool kTransactionActive = true; uint8_t = unsigned char]' art/runtime/dex/dex_file_annotations.cc:846:37: required from here art/runtime/mirror/field.h:103:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:103:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetOffset(uint32_t) [with bool kTransactionActive = true; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:93:37: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = true]' art/runtime/dex/dex_file_annotations.cc:567:34: required from 'bool art::{anonymous}::ProcessAnnotationValue(const ClassData&, const uint8_t**, art::DexFile::AnnotationValue*, art::Handle, art::DexFile::AnnotationResultStyle) [with bool kTransactionActive = true; uint8_t = unsigned char]' art/runtime/dex/dex_file_annotations.cc:846:37: required from here art/runtime/mirror/field.h:108:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:108:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:888:54: required from 'void art::mirror::Object::VisitFieldsReferences(uint32_t, const Visitor&) [with bool kIsStatic = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::RememberedSetReferenceVisitor; uint32_t = unsigned int]' art/runtime/mirror/object-inl.h:912:65: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::RememberedSetReferenceVisitor; JavaLangRefVisitor = art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/gc/accounting/remembered_set.cc:125:25: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::RememberedSetReferenceVisitor; JavaLangRefVisitor = art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/gc/accounting/remembered_set.cc:125:25: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/jit/profile_saver.h:20, from art/runtime/jit/profile_saver.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-refvisitor-inl.h:82:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::ModUnionUpdateObjectReferencesVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/accounting/mod_union_table.cc:162:26: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit_code_cache.cc:27: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::RememberedSetReferenceVisitor; JavaLangRefVisitor = art::gc::accounting::RememberedSetReferenceVisitor]' art/runtime/gc/accounting/remembered_set.cc:125:25: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/indirect_reference_table.h:26: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/rosalloc.cc: In member function 'size_t art::gc::allocator::RosAlloc::ReleasePages()': art/runtime/gc/allocator/rosalloc.cc:2023:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 2023 | } | ^ art/runtime/gc/allocator/rosalloc.cc:2024:7: note: here 2024 | case kPageMapLargeObject: // Fall through. | ^~~~ art/runtime/jit/jit_code_cache.cc:249:5: warning: multi-line comment [-Wcomment] 249 | // | non exec code |\ | ^ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/profiling_info.cc:21: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from /usr/include/c++/13.2.1/functional:64, from libbase/include/android-base/logging.h:60, from art/libelffile/elf/elf_utils.h:24: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const Elf64_Shdr&}; _Tp = Elf64_Shdr; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/class_loader_context.h:26: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/hidden_api.cc:21: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap.cc:63: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/iftable-inl.h:21: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31, from art/runtime/debugger.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/jdwp/jdwp_handler.cc:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/jni/java_vm_ext.cc art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/jit/profile_saver.cc:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'uint32_t art::mirror::Class::GetReferenceInstanceOffsets() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:913:55: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::ModUnionUpdateObjectReferencesVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::ModUnionUpdateObjectReferencesVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/accounting/mod_union_table.cc:162:26: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class_loader-inl.h:41:64: required from 'void art::mirror::ClassLoader::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitClasses = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::ModUnionUpdateObjectReferencesVisitor]' art/runtime/mirror/object-refvisitor-inl.h:70:58: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::ModUnionUpdateObjectReferencesVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/accounting/mod_union_table.cc:162:26: required from here art/runtime/mirror/class_loader.h:48:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jni/java_vm_ext.h:22, from art/runtime/jni/java_vm_ext.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27, from art/runtime/dex/dex_file_annotations.h:21: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/gc/space/dlmalloc_space.cc: In constructor 'art::gc::space::DlMallocSpace::DlMallocSpace(art::MemMap&&, size_t, const std::string&, void*, uint8_t*, uint8_t*, uint8_t*, size_t, bool, size_t)': art/runtime/gc/space/dlmalloc_space.cc:44:36: warning: declaration of 'mspace' shadows a global declaration [-Wshadow] 44 | void* mspace, | ~~~~~~^~~~~~ In file included from art/runtime/gc/allocator/dlmalloc.h:36: art/sigchainlib/../../bionic/libc/upstream-dlmalloc/malloc.h:529:15: note: shadowed declaration is here 529 | typedef void* mspace; | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/dlmalloc_space.cc: In constructor 'art::gc::space::DlMallocSpace::DlMallocSpace(art::MemMap&&, size_t, const std::string&, void*, uint8_t*, uint8_t*, uint8_t*, size_t, bool, size_t)': art/runtime/gc/space/dlmalloc_space.cc:44:36: warning: declaration of 'mspace' shadows a global declaration [-Wshadow] 44 | void* mspace, | ~~~~~~^~~~~~ art/sigchainlib/../../bionic/libc/upstream-dlmalloc/malloc.h:529:15: note: shadowed declaration is here 529 | typedef void* mspace; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/dlmalloc_space.cc: In member function 'virtual art::mirror::Object* art::gc::space::DlMallocSpace::AllocWithGrowth(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space.cc:185:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 185 | memset(result, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31, from art/runtime/debugger.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/libartbase/base/atomic.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/libartbase/base/atomic.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/dlmalloc_space.cc: In member function 'virtual size_t art::gc::space::DlMallocSpace::FreeList(art::Thread*, size_t, art::mirror::Object**)': art/runtime/gc/space/dlmalloc_space.cc:270:15: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 270 | memset(ptrs[i], 0xEF, size); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/collector/concurrent_copying.cc: In member function 'void art::gc::collector::ConcurrentCopying::FillWithDummyObject(art::Thread*, art::mirror::Object*, size_t)': art/runtime/gc/collector/concurrent_copying.cc:3218:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 3218 | memset(dummy_obj, 0, byte_size); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/gc/collector/mark_sweep.cc:475:63: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/gc/collector/mark_sweep.cc:476:66: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/runtime/class_table.h:22: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {art::HashSet >}; _Tp = art::HashSet >; _Alloc = std::allocator > >]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector > >::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/debugger.cc: In static member function 'static void art::Dbg::PostLocationEvent(art::ArtMethod*, int, art::mirror::Object*, int, const art::JValue*)': art/runtime/debugger.cc:2911:24: warning: possibly dangling reference to a temporary [-Wdangling-reference] 2911 | const Instruction& instr = location.method->DexInstructions().InstructionAt(location.dex_pc); | ^~~~~ art/runtime/debugger.cc:2911:80: note: the temporary was destroyed at the end of the full expression 'location.art::JDWP::EventLocation::method->art::ArtMethod::DexInstructions().art::CodeItemInstructionAccessor::InstructionAt(location.art::JDWP::EventLocation::dex_pc)' 2911 | const Instruction& instr = location.method->DexInstructions().InstructionAt(location.dex_pc); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 666 | ALWAYS_INLINE void MterpFieldAccess(Instruction* inst, | ^~~~~~~~~~~~~~~~ art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:666:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/interpreter/interpreter_common.h:46: art/runtime/interpreter/interpreter_switch_impl.h:59:22: warning: 'always_inline' function might not be inlinable [-Wattributes] 59 | ALWAYS_INLINE JValue ExecuteSwitchImpl(Thread* self, const CodeItemDataAccessor& accessor, | ^~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/gc_root-inl.h:24: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 752 | ALWAYS_INLINE bool MterpFieldAccessFast(Instruction* inst, | ^~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/mterp/mterp.cc:752:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 137 | static ALWAYS_INLINE bool DoInvoke(Thread* self, | ^~~~~~~~ art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from libbase/include/android-base/stringprintf.h:21, from art/runtime/jdwp/jdwp_main.cc:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:888:54: required from 'void art::mirror::Object::VisitFieldsReferences(uint32_t, const Visitor&) [with bool kIsStatic = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::ModUnionUpdateObjectReferencesVisitor; uint32_t = unsigned int]' art/runtime/mirror/object-inl.h:912:65: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::ModUnionUpdateObjectReferencesVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::ModUnionUpdateObjectReferencesVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/accounting/mod_union_table.cc:162:26: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {art::HashSet >}; _Tp = art::HashSet >; _Alloc = std::allocator > >]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = art::HashSet >; _Alloc = std::allocator > >]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'art::ClassTable::ClassTable()' at art/runtime/class_table.cc:27:21: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::accounting::ModUnionUpdateObjectReferencesVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::ModUnionUpdateObjectReferencesVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::ModUnionUpdateObjectReferencesVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/accounting/mod_union_table.cc:162:26: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/art_field.h:22, from art/runtime/art_field-inl.h:20, from art/runtime/jni/check_jni.cc:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_field.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/jni/java_vm_ext.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {art::HashSet >}; _Tp = art::HashSet >; _Alloc = std::allocator > >]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = art::HashSet >; _Alloc = std::allocator > >]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'void art::ClassTable::FreezeSnapshot()' at art/runtime/class_table.cc:33:21: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::accounting::ModUnionUpdateObjectReferencesVisitor]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::accounting::ModUnionUpdateObjectReferencesVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::ModUnionUpdateObjectReferencesVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::accounting::ModUnionUpdateObjectReferencesVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/accounting/mod_union_table.cc:162:26: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from libbase/include/android-base/stringprintf.h:21, from art/runtime/jdwp/jdwp_socket.cc:29: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ host C++: libart <= art/runtime/jni/jni_env_ext.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_insert_aux(iterator, _Arg&&) [with _Arg = art::HashSet >; _Tp = art::HashSet >; _Alloc = std::allocator > >]': /usr/include/c++/13.2.1/bits/vector.tcc:413:7: note: parameter passing for argument of type 'std::vector > >::iterator' changed in GCC 7.1 413 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc/accounting/mod_union_table.h:25: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/array-inl.h:26: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/jni/java_vm_ext.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_insert_rval(const_iterator, value_type&&) [with _Tp = art::HashSet >; _Alloc = std::allocator > >]', inlined from 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = art::HashSet >; _Alloc = std::allocator > >]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1391:30, inlined from 'void art::ClassTable::AddClassSet(ClassSet&&)' at art/runtime/class_table.cc:284:18: /usr/include/c++/13.2.1/bits/vector.tcc:370:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 370 | _M_insert_aux(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc:372:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 372 | _M_realloc_insert(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/interpreter/interpreter_common.h:42: art/libdexfile/dex/dex_instruction-inl.h: In member function 'uint32_t art::Instruction::GetVarArgs(uint32_t*, uint16_t) const': art/libdexfile/dex/dex_instruction-inl.h:537:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 537 | arg[4] = InstA(inst_data); | ~~~~~~~^~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:539:5: note: here 539 | case 4: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:540:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 540 | arg[3] = (regList >> 12) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:542:5: note: here 542 | case 3: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:543:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 543 | arg[2] = (regList >> 8) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:545:5: note: here 545 | case 2: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:546:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 546 | arg[1] = (regList >> 4) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:548:5: note: here 548 | case 1: | ^~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/intern_table.h:24, from art/runtime/gc/heap.cc:78: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/gc/space/rosalloc_space.cc: In member function 'virtual size_t art::gc::space::RosAllocSpace::FreeList(art::Thread*, size_t, art::mirror::Object**)': art/runtime/gc/space/rosalloc_space.cc:300:15: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 300 | memset(ptrs[i], 0xEF, size); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/jni/jni_env_ext.h:22, from art/runtime/jni/jni_env_ext.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc/reference_queue.h:28, from art/runtime/gc/reference_processor.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/runtime_options.h:33, from art/runtime/parsed_options.h:31, from art/runtime/jni/java_vm_ext.cc:46: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/jit/debugger_interface.cc:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/jit/debugger_interface.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/runtime/mirror/object-inl.h:22, from art/runtime/jni/jni_env_ext.cc:31: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ host C++: libart <= art/runtime/jni/jni_internal.cc art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/jdwp/object_registry.cc:21: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/stl_tree.h:63, from /usr/include/c++/13.2.1/map:62, from art/runtime/jdwp/object_registry.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_array-inl.h:29: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/handle_scope-inl.h:25, from art/runtime/gc/space/malloc_space.cc:31: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/jni/jni_internal.h:23, from art/runtime/jni/jni_internal.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'uint32_t art::mirror::Class::GetReferenceInstanceOffsets() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:913:55: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::MarkVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::MarkVisitor; JavaLangRefVisitor = art::gc::collector::MarkSweep::DelayReferenceReferentVisitor]' art/runtime/gc/collector/mark_sweep-inl.h:37:23: required from 'void art::gc::collector::MarkSweep::ScanObjectVisit(art::mirror::Object*, const MarkVisitor&, const ReferenceVisitor&) [with MarkVisitor = art::gc::collector::MarkVisitor; ReferenceVisitor = DelayReferenceReferentVisitor]' art/runtime/gc/collector/mark_sweep.cc:1389:18: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/map:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class_loader.h: In instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class_loader-inl.h:41:64: required from 'void art::mirror::ClassLoader::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitClasses = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::MarkVisitor]' art/runtime/mirror/object-refvisitor-inl.h:70:58: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::MarkVisitor; JavaLangRefVisitor = art::gc::collector::MarkSweep::DelayReferenceReferentVisitor]' art/runtime/gc/collector/mark_sweep-inl.h:37:23: required from 'void art::gc::collector::MarkSweep::ScanObjectVisit(art::mirror::Object*, const MarkVisitor&, const ReferenceVisitor&) [with MarkVisitor = art::gc::collector::MarkVisitor; ReferenceVisitor = DelayReferenceReferentVisitor]' art/runtime/gc/collector/mark_sweep.cc:1389:18: required from here art/runtime/mirror/class_loader.h:48:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object.h:24, from art/runtime/mirror/class.h:31: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ host C++: libart <= art/runtime/linear_alloc.cc art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/array-inl.h:26: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker.cc: In member function 'bool art::ClassLinker::AddImageSpace(art::gc::space::ImageSpace*, art::Handle, jobjectArray, const char*, std::vector >*, std::string*)': art/runtime/class_linker.cc:2004:96: warning: format '%zu' expects argument of type 'size_t', but argument 3 has type 'art::PointerSize' [-Wformat=] 2004 | *error_msg = StringPrintf("Application image pointer size does not match runtime: %zu vs %zu", | ~~^ | | | unsigned int 2005 | static_cast(space->GetImageHeader().GetPointerSize()), 2006 | image_pointer_size_); | ~~~~~~~~~~~~~~~~~~~ | | | art::PointerSize art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::collector::MarkVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::MarkVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::MarkVisitor; JavaLangRefVisitor = art::gc::collector::MarkSweep::DelayReferenceReferentVisitor]' art/runtime/gc/collector/mark_sweep-inl.h:37:23: required from 'void art::gc::collector::MarkSweep::ScanObjectVisit(art::mirror::Object*, const MarkVisitor&, const ReferenceVisitor&) [with MarkVisitor = art::gc::collector::MarkVisitor; ReferenceVisitor = DelayReferenceReferentVisitor]' art/runtime/gc/collector/mark_sweep.cc:1389:18: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::collector::MarkVisitor]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::collector::MarkVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::MarkVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::MarkVisitor; JavaLangRefVisitor = art::gc::collector::MarkSweep::DelayReferenceReferentVisitor]' art/runtime/gc/collector/mark_sweep-inl.h:37:23: required from 'void art::gc::collector::MarkSweep::ScanObjectVisit(art::mirror::Object*, const MarkVisitor&, const ReferenceVisitor&) [with MarkVisitor = art::gc::collector::MarkVisitor; ReferenceVisitor = DelayReferenceReferentVisitor]' art/runtime/gc/collector/mark_sweep.cc:1389:18: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:66: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Elf64_Shdr; _Alloc = std::allocator]', inlined from 'bool art::ElfFileImpl::Strip(art::File*, std::string*) [with ElfTypes = art::ElfTypes64]' at art/runtime/elf_file.cc:1476:32: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20, from art/runtime/jni/jni_internal.cc:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Elf64_Shdr; _Alloc = std::allocator]', inlined from 'bool art::ElfFileImpl::Strip(art::File*, std::string*) [with ElfTypes = art::ElfTypes64]' at art/runtime/elf_file.cc:1485:30: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-refvisitor-inl.h:82:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/collector/semi_space.cc:330:23: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34: art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/iftable-inl.h:21: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jdwp/jdwp.h:26: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/jit/jit_code_cache.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/runtime/linear_alloc.h:20, from art/runtime/linear_alloc.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/base/mutex.h:33, from art/runtime/linear_alloc.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/managed_stack.cc In file included from art/libdexfile/dex/class_accessor-inl.h:28, from art/runtime/hidden_api.cc:26: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/jit/profiling_info.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/indirect_reference_table.cc:25: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-refvisitor-inl.h:82:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor; JavaLangRefVisitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/gc/collector/concurrent_copying.cc:652:50: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/linear_alloc.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'uint32_t art::mirror::Class::GetReferenceInstanceOffsets() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:913:55: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/collector/semi_space.cc:330:23: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class_loader.h: In instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class_loader-inl.h:41:64: required from 'void art::mirror::ClassLoader::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitClasses = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor]' art/runtime/mirror/object-refvisitor-inl.h:70:58: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/collector/semi_space.cc:330:23: required from here art/runtime/mirror/class_loader.h:48:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/method_reference.h:22, from art/runtime/jit/profile_saver.h:22: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/array-inl.h:26: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/intern_table.h:24, from art/runtime/intern_table-inl.h:20, from art/runtime/gc/space/image_space.cc:51: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:888:54: required from 'void art::mirror::Object::VisitFieldsReferences(uint32_t, const Visitor&) [with bool kIsStatic = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor; uint32_t = unsigned int]' art/runtime/mirror/object-inl.h:912:65: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/collector/semi_space.cc:330:23: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/instrumentation.h:30: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/collector/semi_space.cc:330:23: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::gc::collector::SemiSpace::MarkObjectVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::SemiSpace::MarkObjectVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::SemiSpace::MarkObjectVisitor; JavaLangRefVisitor = art::gc::collector::SemiSpace::MarkObjectVisitor]' art/runtime/gc/collector/semi_space.cc:731:93: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/managed_stack.h:26, from art/runtime/managed_stack-inl.h:20, from art/runtime/managed_stack.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/hidden_api.cc: In member function 'std::vector art::hiddenapi::detail::MemberSignature::GetSignatureParts() const': libbase/include/android-base/logging.h:266:35: warning: passing 'art::hiddenapi::detail::MemberSignature::MemberType' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/hidden_api.cc:164:5: note: in expansion of macro 'DCHECK_EQ' 164 | DCHECK_EQ(type_, kMethod); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/hidden_api.cc:164:5: note: in expansion of macro 'DCHECK_EQ' 164 | DCHECK_EQ(type_, kMethod); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::hiddenapi::detail::MemberSignature::MemberType' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/hidden_api.cc:164:5: note: in expansion of macro 'DCHECK_EQ' 164 | DCHECK_EQ(type_, kMethod); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/hidden_api.cc:164:5: note: in expansion of macro 'DCHECK_EQ' 164 | DCHECK_EQ(type_, kMethod); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::hiddenapi::detail::MemberSignature::MemberType' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/hidden_api.cc:164:5: note: in expansion of macro 'DCHECK_EQ' 164 | DCHECK_EQ(type_, kMethod); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/hidden_api.cc:164:5: note: in expansion of macro 'DCHECK_EQ' 164 | DCHECK_EQ(type_, kMethod); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::hiddenapi::detail::MemberSignature::MemberType' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/hidden_api.cc:164:5: note: in expansion of macro 'DCHECK_EQ' 164 | DCHECK_EQ(type_, kMethod); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/hidden_api.cc:164:5: note: in expansion of macro 'DCHECK_EQ' 164 | DCHECK_EQ(type_, kMethod); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: passing 'art::hiddenapi::detail::MemberSignature::MemberType' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/hidden_api.cc:164:5: note: in expansion of macro 'DCHECK_EQ' 164 | DCHECK_EQ(type_, kMethod); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/hidden_api.cc:164:5: note: in expansion of macro 'DCHECK_EQ' 164 | DCHECK_EQ(type_, kMethod); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::hiddenapi::detail::MemberSignature::MemberType' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/hidden_api.cc:164:5: note: in expansion of macro 'DCHECK_EQ' 164 | DCHECK_EQ(type_, kMethod); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/hidden_api.cc:164:5: note: in expansion of macro 'DCHECK_EQ' 164 | DCHECK_EQ(type_, kMethod); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::collector::SemiSpace::VerifyNoFromSpaceReferencesVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/collector/semi_space.cc:330:23: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::gc::collector::SemiSpace::MarkObjectVisitor]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::gc::collector::SemiSpace::MarkObjectVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::SemiSpace::MarkObjectVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::SemiSpace::MarkObjectVisitor; JavaLangRefVisitor = art::gc::collector::SemiSpace::MarkObjectVisitor]' art/runtime/gc/collector/semi_space.cc:731:93: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ host C++: libart <= art/runtime/method_handles.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/runtime_options.h:33, from art/runtime/parsed_options.h:31, from art/runtime/jni/jni_internal.cc:67: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/intern_table.cc:28: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'uint32_t art::mirror::Class::GetReferenceInstanceOffsets() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:913:55: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor; JavaLangRefVisitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/gc/collector/concurrent_copying.cc:652:50: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class_loader-inl.h:41:64: required from 'void art::mirror::ClassLoader::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitClasses = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/mirror/object-refvisitor-inl.h:70:58: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor; JavaLangRefVisitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/gc/collector/concurrent_copying.cc:652:50: required from here art/runtime/mirror/class_loader.h:48:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/gc/space/malloc_space.cc: In member function 'virtual void art::gc::space::MallocSpace::RegisterRecentFree(art::mirror::Object*)': art/runtime/gc/space/malloc_space.cc:139:41: warning: array subscript is outside array bounds of 'std::pair [0]' [-Warray-bounds=] 139 | recent_freed_objects_[recent_free_pos_] = std::make_pair(ptr, ptr->GetClass()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ art/runtime/gc/space/malloc_space.h:180:52: note: while referencing 'art::gc::space::MallocSpace::recent_freed_objects_' 180 | std::pair recent_freed_objects_[kRecentFreeCount]; | ^~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/malloc_space.cc:139:41: warning: array subscript is outside array bounds of 'std::pair [0]' [-Warray-bounds=] 139 | recent_freed_objects_[recent_free_pos_] = std::make_pair(ptr, ptr->GetClass()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ art/runtime/gc/space/malloc_space.h:180:52: note: while referencing 'art::gc::space::MallocSpace::recent_freed_objects_' 180 | std::pair recent_freed_objects_[kRecentFreeCount]; | ^~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:117:56: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/array.cc art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_table.h:25, from art/runtime/class_table-inl.h:20, from art/runtime/mirror/class_loader-inl.h:22, from art/runtime/mirror/object-refvisitor-inl.h:23, from art/runtime/gc/verification.cc:26: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/jit/profile_saver.h:23: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/algorithm:60, from art/libartbase/base/histogram-inl.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/libdexfile/dex/dex_instruction.h:23, from art/runtime/method_handles.h:22, from art/runtime/method_handles-inl.h:20, from art/runtime/method_handles.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:888:54: required from 'void art::mirror::Object::VisitFieldsReferences(uint32_t, const Visitor&) [with bool kIsStatic = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor; uint32_t = unsigned int]' art/runtime/mirror/object-inl.h:912:65: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor; JavaLangRefVisitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/gc/collector/concurrent_copying.cc:652:50: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor; JavaLangRefVisitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/gc/collector/concurrent_copying.cc:652:50: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/handle.h:23, from art/runtime/method_handles.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ host C++: libart <= art/runtime/mirror/class.cc In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/iomanip:42, from art/runtime/jni/check_jni.cc:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/obj_ptr.h:23, from art/runtime/mirror/array.h:23, from art/runtime/mirror/array-inl.h:20, from art/runtime/mirror/array.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor; JavaLangRefVisitor = art::gc::collector::ConcurrentCopying::VerifyGrayImmuneObjectsVisitor]' art/runtime/gc/collector/concurrent_copying.cc:652:50: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/interpreter/interpreter_common.h:32, from art/runtime/method_handles-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_table.h:25, from art/runtime/class_table-inl.h:20, from art/runtime/mirror/class_loader-inl.h:22, from art/runtime/mirror/object-refvisitor-inl.h:23, from art/runtime/hprof/hprof.cc:67: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/class_ext.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.cc:361:59: required from 'uint32_t art::hiddenapi::detail::GetDexFlags(T*) [with T = art::ArtField; uint32_t = unsigned int]' art/runtime/hidden_api.cc:492:57: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:22, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/mirror/array.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ host C++: libart <= art/runtime/mirror/dex_cache.cc In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/mirror/class.h:29, from art/runtime/mirror/class.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/mirror/object.h:20, from art/runtime/mirror/class.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/emulated_stack_frame.cc In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/obj_ptr.h:23, from art/runtime/mirror/array.h:23, from art/runtime/mirror/class_ext.h:20, from art/runtime/mirror/class_ext-inl.h:20, from art/runtime/mirror/class_ext.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/mirror/class.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/common_dex_operations.h:21: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/obj_ptr.h:23, from art/runtime/mirror/array.h:23, from art/runtime/mirror/dex_cache.h:20, from art/runtime/mirror/dex_cache-inl.h:20, from art/runtime/mirror/dex_cache.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart <= art/runtime/mirror/executable.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/mirror/dex_cache-inl.h:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/hidden_api.cc:307:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 307 | static ALWAYS_INLINE void MaybeUpdateAccessFlags(Runtime* runtime, T* member, uint32_t flag) | ^~~~~~~~~~~~~~~~~~~~~~ art/runtime/hidden_api.cc:307:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/hidden_api.cc:324:31: warning: 'always_inline' function might not be inlinable [-Wattributes] 324 | static ALWAYS_INLINE uint32_t GetMemberDexIndex(ArtMethod* method) | ^~~~~~~~~~~~~~~~~ art/runtime/hidden_api.cc:320:31: warning: 'always_inline' function might not be inlinable [-Wattributes] 320 | static ALWAYS_INLINE uint32_t GetMemberDexIndex(ArtField* field) { | ^~~~~~~~~~~~~~~~~ art/runtime/hidden_api.cc:302:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 302 | static ALWAYS_INLINE bool CanUpdateRuntimeFlags(ArtMethod* method) { | ^~~~~~~~~~~~~~~~~~~~~ art/runtime/hidden_api.cc:298:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 298 | static ALWAYS_INLINE bool CanUpdateRuntimeFlags(ArtField*) { | ^~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/locks.h:23: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/field.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jdwp/jdwp_handler.cc:35: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/libartbase/base/utils.h:32, from art/runtime/mirror/emulated_stack_frame.h:20, from art/runtime/mirror/emulated_stack_frame-inl.h:20, from art/runtime/mirror/emulated_stack_frame.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_instruction.h:23, from art/runtime/mirror/emulated_stack_frame.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/mirror/class_ext-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28, from art/libdexfile/dex/string_reference.h:24, from art/libdexfile/dex/type_reference.h:25, from art/libprofile/./profile/profile_compilation_info.h:35, from art/runtime/jit/profile_saver.h:24: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/method.cc art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/scoped_thread_state_change-inl.h:28: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/handle.h:27: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from /usr/include/zconf.h:254, from /usr/include/zlib.h:34, from art/runtime/jni/check_jni.cc:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/managed_stack.cc:21: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/managed_stack.h:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ host C++: libart <= art/runtime/mirror/method_handle_impl.cc In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-refvisitor-inl.h:82:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Verification::BFSFindReachable; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/verification.cc:231:32: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/mirror/object.h:20, from art/runtime/mirror/accessible_object.h:20, from art/runtime/mirror/executable.h:20, from art/runtime/mirror/executable-inl.h:20, from art/runtime/mirror/executable.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/emulated_stack_frame-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/mirror/object.h:20, from art/runtime/mirror/accessible_object.h:20, from art/runtime/mirror/field.h:20, from art/runtime/mirror/field-inl.h:20, from art/runtime/mirror/field.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/mirror/object.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/mirror/object.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/method_handles_lookup.cc art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/read_barrier.h:25, from art/runtime/interpreter/shadow_frame.h:27, from art/runtime/managed_stack-inl.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26, from art/runtime/mirror/emulated_stack_frame-inl.h:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/mirror/field-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/indirect_reference_table.h:32: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/jni/jni_internal.cc:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'uint32_t art::mirror::Class::GetReferenceInstanceOffsets() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:913:55: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Verification::BFSFindReachable]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Verification::BFSFindReachable; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/verification.cc:231:32: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class_loader-inl.h:41:64: required from 'void art::mirror::ClassLoader::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitClasses = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Verification::BFSFindReachable]' art/runtime/mirror/object-refvisitor-inl.h:70:58: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Verification::BFSFindReachable; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/verification.cc:231:32: required from here art/runtime/mirror/class_loader.h:48:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/runtime/mirror/object-inl.h:22, from art/runtime/mirror/executable-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/mirror/object.h:20, from art/runtime/mirror/accessible_object.h:20, from art/runtime/mirror/executable.h:20, from art/runtime/mirror/method.h:20, from art/runtime/mirror/method.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart <= art/runtime/mirror/method_type.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/scoped_thread_state_change-inl.h:28: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/mirror/object.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassSize() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/hprof/hprof.cc:1206:54: required from here art/runtime/mirror/class.h:486:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 486 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:486:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 486 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/art_field.h:22, from art/runtime/mirror/method_handle_impl.h:20, from art/runtime/mirror/method_handle_impl-inl.h:20, from art/runtime/mirror/method_handle_impl.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_field.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/object.cc art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47, from art/runtime/method_handles-inl.h:24, from art/runtime/mirror/emulated_stack_frame.cc:25: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/class_root.h:20, from art/runtime/mirror/method.cc:20: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ host C++: libart <= art/runtime/mirror/stack_trace_element.cc libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/string.cc art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_utils.h:23, from art/runtime/mirror/array.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:888:54: required from 'void art::mirror::Object::VisitFieldsReferences(uint32_t, const Visitor&) [with bool kIsStatic = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Verification::BFSFindReachable; uint32_t = unsigned int]' art/runtime/mirror/object-inl.h:912:65: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Verification::BFSFindReachable]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Verification::BFSFindReachable; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/verification.cc:231:32: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/mirror/throwable.cc In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/common_dex_operations.h:39, from art/runtime/interpreter/interpreter_common.h:39: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/common_dex_operations.h:39, from art/runtime/interpreter/interpreter_common.h:39: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::Verification::BFSFindReachable]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Verification::BFSFindReachable]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Verification::BFSFindReachable; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/verification.cc:231:32: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator.h:64, from /usr/include/c++/13.2.1/bits/range_access.h:38, from /usr/include/c++/13.2.1/string_view:43, from art/runtime/mirror/class.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/utils.h:32, from art/runtime/mirror/method_handles_lookup.h:20, from art/runtime/mirror/method_handles_lookup.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26, from art/runtime/handle.h:23, from art/runtime/mirror/method_handles_lookup.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C++: libart <= art/runtime/mirror/var_handle.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::Verification::BFSFindReachable]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::Verification::BFSFindReachable]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Verification::BFSFindReachable]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Verification::BFSFindReachable; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/verification.cc:231:32: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-refvisitor-inl.h:82:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/hprof/hprof.cc:1115:25: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/hprof/hprof.cc:1512:46: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41, from /usr/include/c++/13.2.1/ostream:40, from art/libartbase/base/histogram-inl.h:23: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/intern_table.h:27: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_utils.h:23, from art/runtime/mirror/class.h:22: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/common_dex_operations.h:39, from art/runtime/interpreter/interpreter_common.h:39: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/method_handles.h:25: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from art/runtime/method_handles.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/mirror/method_handle_impl-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_utils.h:23, from art/runtime/mirror/array.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/mirror/object.h:20, from art/runtime/mirror/object.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/mirror/class.h:29, from art/runtime/mirror/string.h:22, from art/runtime/mirror/string-inl.h:19, from art/runtime/mirror/string-alloc-inl.h:19, from art/runtime/mirror/string.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/mirror/object.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/mirror/object.h:20, from art/runtime/mirror/class.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/monitor.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/class-alloc-inl.h:20, from art/runtime/mirror/method_handles_lookup.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/mirror/object.h:20, from art/runtime/mirror/throwable.h:20, from art/runtime/mirror/throwable.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/mirror/object.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/hprof/hprof.cc:1115:25: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class_loader-inl.h:41:64: required from 'void art::mirror::ClassLoader::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitClasses = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector]' art/runtime/mirror/object-refvisitor-inl.h:70:58: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/hprof/hprof.cc:1115:25: required from here art/runtime/mirror/class_loader.h:48:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/dex_cache-inl.h:25: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/runtime/mirror/object-inl.h:22, from art/runtime/mirror/method_type-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/mirror/object.h:24, from art/runtime/mirror/object-inl.h:20: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/gc_root-inl.h:24: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/class_linker.cc: In member function 'void art::ClassLinker::LinkInterfaceMethodsHelper::ClobberOldMethods(art::LengthPrefixedArray*, art::LengthPrefixedArray*)': art/runtime/class_linker.cc:7484:15: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class art::LengthPrefixedArray'; use assignment instead [-Wclass-memaccess] 7484 | memset(old_methods, 0xFEu, old_size); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class-inl.h:26: art/libartbase/base/length_prefixed_array.h:31:7: note: 'class art::LengthPrefixedArray' declared here 31 | class LengthPrefixedArray { | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/mirror/object.h:20, from art/runtime/mirror/stack_trace_element.h:20, from art/runtime/mirror/stack_trace_element.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/mirror/object.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/handle.h:23, from art/runtime/mirror/var_handle.h:20, from art/runtime/mirror/var_handle.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/monitor_objects_stack_visitor.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/string-inl.h:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/common_dex_operations.h:39, from art/runtime/interpreter/interpreter_common.h:39: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/interpreter/interpreter.h:21, from art/runtime/interpreter/interpreter_common.h:20: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/runtime/mirror/object.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/mirror/throwable.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:888:54: required from 'void art::mirror::Object::VisitFieldsReferences(uint32_t, const Visitor&) [with bool kIsStatic = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector; uint32_t = unsigned int]' art/runtime/mirror/object-inl.h:912:65: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/hprof/hprof.cc:1115:25: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/hprof/hprof.cc:1115:25: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/runtime/mirror/var_handle.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/interpreter/interpreter_common.h:43: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/dex_cache-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_utils.h:23, from art/runtime/mirror/array.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class_ext.h:21: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:22: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/runtime/monitor.h:29, from art/runtime/monitor-inl.h:20, from art/runtime/monitor.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33, from art/runtime/monitor.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::hprof::Hprof::DumpHeapObject(art::mirror::Object*)::RootCollector; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/hprof/hprof.cc:1115:25: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class_ext.h:22: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/mirror/var_handle.cc:20: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/common_dex_operations.h:39, from art/runtime/interpreter/interpreter_common.h:39: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/monitor-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(const_iterator, _Args&& ...) [with _Args = {const long long unsigned int&, art::ObjectRegistryEntry* const&}; _Key = long long unsigned int; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /usr/include/c++/13.2.1/bits/stl_tree.h:2458:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 2458 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/mirror/dex_cache-inl.h:29: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/interpreter/interpreter_common.h:43: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/gc/space/image_space.cc:444:96: required from 'void art::gc::space::ImageSpace::PatchObjectVisitor::VisitClass(art::mirror::Class*) [with art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::Loader::ForwardAddress; NativeVisitor = art::gc::space::ImageSpace::Loader::ForwardAddress]' art/runtime/gc/space/image_space.cc:1238:44: required from 'static bool art::gc::space::ImageSpace::Loader::RelocateInPlace(art::ImageHeader&, uint8_t*, art::gc::accounting::ContinuousSpaceBitmap*, const art::OatFile*, std::string*) [with art::PointerSize kPointerSize = art::PointerSize::k64; uint8_t = unsigned char; art::gc::accounting::ContinuousSpaceBitmap = art::gc::accounting::SpaceBitmap<8>; std::string = std::__cxx11::basic_string]' art/runtime/gc/space/image_space.cc:703:51: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/gc/space/image_space.cc:464:86: required from 'void art::gc::space::ImageSpace::PatchObjectVisitor::VisitClass(art::mirror::Class*) [with art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::Loader::ForwardAddress; NativeVisitor = art::gc::space::ImageSpace::Loader::ForwardAddress]' art/runtime/gc/space/image_space.cc:1238:44: required from 'static bool art::gc::space::ImageSpace::Loader::RelocateInPlace(art::ImageHeader&, uint8_t*, art::gc::accounting::ContinuousSpaceBitmap*, const art::OatFile*, std::string*) [with art::PointerSize kPointerSize = art::PointerSize::k64; uint8_t = unsigned char; art::gc::accounting::ContinuousSpaceBitmap = art::gc::accounting::SpaceBitmap<8>; std::string = std::__cxx11::basic_string]' art/runtime/gc/space/image_space.cc:703:51: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'void art::mirror::Class::FixupNativePointers(art::mirror::Class*, art::PointerSize, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; Visitor = art::gc::space::ImageSpace::PatchObjectVisitor, art::gc::space::ImageSpace::Loader::ForwardAddress >]': art/runtime/gc/space/image_space.cc:477:44: required from 'void art::gc::space::ImageSpace::PatchObjectVisitor::VisitClass(art::mirror::Class*) [with art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::Loader::ForwardAddress; NativeVisitor = art::gc::space::ImageSpace::Loader::ForwardAddress]' art/runtime/gc/space/image_space.cc:1238:44: required from 'static bool art::gc::space::ImageSpace::Loader::RelocateInPlace(art::ImageHeader&, uint8_t*, art::gc::accounting::ContinuousSpaceBitmap*, const art::OatFile*, std::string*) [with art::PointerSize kPointerSize = art::PointerSize::k64; uint8_t = unsigned char; art::gc::accounting::ContinuousSpaceBitmap = art::gc::accounting::SpaceBitmap<8>; std::string = std::__cxx11::basic_string]' art/runtime/gc/space/image_space.cc:703:51: required from here art/runtime/mirror/class-inl.h:1120:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1120 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1120:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1120 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1122:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1122 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1122:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1122 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1125:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1125 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1125:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1125 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native_bridge_art_interface.cc In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/class-alloc-inl.h:20, from art/runtime/mirror/stack_trace_element.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:31: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/libartbase/base/atomic.h:23: art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetDexFieldIndex()': art/runtime/mirror/field.h:42:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:42:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetAccessFlags()': art/runtime/mirror/field.h:48:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:48:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'int32_t art::mirror::Field::GetOffset()': art/runtime/mirror/field.h:68:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:68:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/map:63: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {const long long unsigned int&, art::ObjectRegistryEntry* const&}; _Key = long long unsigned int; _Tp = art::ObjectRegistryEntry*; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind >::other>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::emplace(_Args&& ...) [with _Args = {const long long unsigned int&, art::ObjectRegistryEntry* const&}; _Key = long long unsigned int; _Tp = art::ObjectRegistryEntry*; _Compare = std::less; _Alloc = std::allocator >]' at /usr/include/c++/13.2.1/bits/stl_map.h:601:22, inlined from 'art::SafeMap::iterator art::SafeMap::Put(const K&, const V&) [with K = long long unsigned int; V = art::ObjectRegistryEntry*; Comparator = std::less; Allocator = std::allocator >]' at art/libartbase/base/safe_map.h:95:52, inlined from 'art::JDWP::ObjectId art::ObjectRegistry::InternalAdd(art::Handle) [with T = art::mirror::Class]' at art/runtime/jdwp/object_registry.cc:121:21: /usr/include/c++/13.2.1/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map, std::allocator > >::const_iterator' {aka 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/mirror/object.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native_stack_dump.cc In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'void art::mirror::Class::FixupNativePointers(art::mirror::Class*, art::PointerSize, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; Visitor = art::gc::space::ImageSpace::PatchObjectVisitor, art::gc::space::ImageSpace::Loader::ForwardAddress >]': art/runtime/gc/space/image_space.cc:477:44: required from 'void art::gc::space::ImageSpace::PatchObjectVisitor::VisitClass(art::mirror::Class*) [with art::PointerSize kPointerSize = art::PointerSize::k32; HeapVisitor = art::gc::space::ImageSpace::Loader::ForwardAddress; NativeVisitor = art::gc::space::ImageSpace::Loader::ForwardAddress]' art/runtime/gc/space/image_space.cc:1238:44: required from 'static bool art::gc::space::ImageSpace::Loader::RelocateInPlace(art::ImageHeader&, uint8_t*, art::gc::accounting::ContinuousSpaceBitmap*, const art::OatFile*, std::string*) [with art::PointerSize kPointerSize = art::PointerSize::k32; uint8_t = unsigned char; art::gc::accounting::ContinuousSpaceBitmap = art::gc::accounting::SpaceBitmap<8>; std::string = std::__cxx11::basic_string]' art/runtime/gc/space/image_space.cc:709:51: required from here art/runtime/mirror/class-inl.h:1120:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1120 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1120:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1120 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:1122:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1122 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1122:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1122 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ art/runtime/mirror/class-inl.h:1125:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1125 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1125:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1125 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47, from art/runtime/method_handles-inl.h:24, from art/runtime/mirror/var_handle.cc:28: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/histogram-inl.h:27: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'void art::mirror::Class::FixupNativePointers(art::mirror::Class*, art::PointerSize, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; Visitor = art::gc::space::ImageSpace::PatchObjectVisitor]': art/runtime/gc/space/image_space.cc:477:44: required from 'void art::gc::space::ImageSpace::PatchObjectVisitor::VisitClass(art::mirror::Class*) [with art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor; NativeVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor]' art/runtime/gc/space/image_space.cc:1631:42: required from 'static void art::gc::space::ImageSpace::BootImageLoader::DoRelocateSpaces(const std::vector >&, uint32_t) [with art::PointerSize kPointerSize = art::PointerSize::k64; uint32_t = unsigned int]' art/runtime/gc/space/image_space.cc:1736:41: required from here art/runtime/mirror/class-inl.h:1120:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1120 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1120:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1120 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1122:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1122 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1122:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1122 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1125:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1125 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1125:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1125 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/native_stack_dump.h:24, from art/runtime/native_stack_dump.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/hprof/hprof.cc: In member function 'void art::hprof::Hprof::DumpHeapClass(art::mirror::Class*)': art/runtime/hprof/hprof.cc:1319:11: warning: this statement may fall through [-Wimplicit-fallthrough=] 1319 | ++overhead_fields; | ^~~~~~~~~~~~~~~~~ art/runtime/hprof/hprof.cc:1323:9: note: here 1323 | case 1: { | ^~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {const long long unsigned int&, art::ObjectRegistryEntry* const&}; _Key = long long unsigned int; _Tp = art::ObjectRegistryEntry*; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind >::other>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::emplace(_Args&& ...) [with _Args = {const long long unsigned int&, art::ObjectRegistryEntry* const&}; _Key = long long unsigned int; _Tp = art::ObjectRegistryEntry*; _Compare = std::less; _Alloc = std::allocator >]' at /usr/include/c++/13.2.1/bits/stl_map.h:601:22, inlined from 'art::SafeMap::iterator art::SafeMap::Put(const K&, const V&) [with K = long long unsigned int; V = art::ObjectRegistryEntry*; Comparator = std::less; Allocator = std::allocator >]' at art/libartbase/base/safe_map.h:95:52, inlined from 'art::JDWP::ObjectId art::ObjectRegistry::InternalAdd(art::Handle) [with T = art::mirror::Object]' at art/runtime/jdwp/object_registry.cc:121:21: /usr/include/c++/13.2.1/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map, std::allocator > >::const_iterator' {aka 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'void art::mirror::Class::FixupNativePointers(art::mirror::Class*, art::PointerSize, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; Visitor = art::gc::space::ImageSpace::PatchObjectVisitor]': art/runtime/gc/space/image_space.cc:477:44: required from 'void art::gc::space::ImageSpace::PatchObjectVisitor::VisitClass(art::mirror::Class*) [with art::PointerSize kPointerSize = art::PointerSize::k32; HeapVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor; NativeVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor]' art/runtime/gc/space/image_space.cc:1631:42: required from 'static void art::gc::space::ImageSpace::BootImageLoader::DoRelocateSpaces(const std::vector >&, uint32_t) [with art::PointerSize kPointerSize = art::PointerSize::k32; uint32_t = unsigned int]' art/runtime/gc/space/image_space.cc:1738:41: required from here art/runtime/mirror/class-inl.h:1120:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1120 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1120:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1120 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1122:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1122 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1122:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1122 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1125:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1125 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1125:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1125 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/hprof/hprof.cc: In member function 'void art::hprof::Hprof::DumpHeapInstanceObject(art::mirror::Object*, art::mirror::Class*, const std::set&)': art/runtime/hprof/hprof.cc:1508:9: warning: this statement may fall through [-Wimplicit-fallthrough=] 1508 | if (mirror::kUseStringCompression && | ^~ art/runtime/hprof/hprof.cc:1516:7: note: here 1516 | case hprof_basic_float: | ^~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/art_method.h:30, from art/runtime/monitor_objects_stack_visitor.h:22, from art/runtime/monitor_objects_stack_visitor.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/interpreter/interpreter_common.h:43: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/libartbase/base/atomic.h:23: art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/compiler/optimizing/inliner.cc: In member function 'void art::HInliner::RunOptimizations(art::HGraph*, const art::dex::CodeItem*, const art::DexCompilationUnit&)': art/compiler/optimizing/inliner.cc:2098:75: warning: 'accessor.art::CodeItemDataAccessor::registers_size_' may be used uninitialized [-Wmaybe-uninitialized] 2098 | total_number_of_dex_registers_ + accessor.RegistersSize(), | ~~~~~~~~~~~~~~~~~~~~~~^~ art/compiler/optimizing/inliner.cc:2090:24: note: 'accessor.art::CodeItemDataAccessor::registers_size_' was declared here 2090 | CodeItemDataAccessor accessor(callee_graph->GetDexFile(), code_item); | ^~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37, from art/runtime/native_stack_dump.cc:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {const long long unsigned int&, art::ObjectRegistryEntry* const&}; _Key = long long unsigned int; _Tp = art::ObjectRegistryEntry*; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Alloc>::rebind >::other>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::emplace(_Args&& ...) [with _Args = {const long long unsigned int&, art::ObjectRegistryEntry* const&}; _Key = long long unsigned int; _Tp = art::ObjectRegistryEntry*; _Compare = std::less; _Alloc = std::allocator >]' at /usr/include/c++/13.2.1/bits/stl_map.h:601:22, inlined from 'art::SafeMap::iterator art::SafeMap::Put(const K&, const V&) [with K = long long unsigned int; V = art::ObjectRegistryEntry*; Comparator = std::less; Allocator = std::allocator >]' at art/libartbase/base/safe_map.h:95:52, inlined from 'art::JDWP::ObjectId art::ObjectRegistry::InternalAdd(art::Handle) [with T = art::mirror::Throwable]' at art/runtime/jdwp/object_registry.cc:121:21: /usr/include/c++/13.2.1/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map, std::allocator > >::const_iterator' {aka 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/interpreter/interpreter_common.h:43: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/read_barrier.h:25, from art/runtime/interpreter/shadow_frame.h:27: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/monitor_objects_stack_visitor.h:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/dalvik_system_DexFile.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/histogram.h:23, from art/libartbase/base/histogram-inl.h:25: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/method.cc:19: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/native_stack_dump.cc:58: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/monitor_objects_stack_visitor.cc:20: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-refvisitor-inl.h:82:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/heap.cc:2021:25: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:30, from art/runtime/art_method-inl.h:20, from art/runtime/native_bridge_art_interface.cc:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/libartbase/base/atomic.h:23: art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart <= art/runtime/native/dalvik_system_VMDebug.cc art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/common_dex_operations.h:39, from art/runtime/interpreter/interpreter_common.h:39: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'uint32_t art::mirror::Class::GetReferenceInstanceOffsets() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:913:55: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::space::ImageSpace::PatchObjectVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::space::ImageSpace::PatchObjectVisitor; JavaLangRefVisitor = art::gc::space::ImageSpace::PatchObjectVisitor]' art/runtime/gc/space/image_space.cc:502:49: required from 'void art::gc::space::ImageSpace::PatchObjectVisitor::VisitObject(art::mirror::Object*) [with art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor; NativeVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor]' art/runtime/gc/space/image_space.cc:1675:39: required from 'static void art::gc::space::ImageSpace::BootImageLoader::DoRelocateSpaces(const std::vector >&, uint32_t) [with art::PointerSize kPointerSize = art::PointerSize::k64; uint32_t = unsigned int]' art/runtime/gc/space/image_space.cc:1736:41: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class_loader-inl.h:41:64: required from 'void art::mirror::ClassLoader::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitClasses = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::space::ImageSpace::PatchObjectVisitor]' art/runtime/mirror/object-refvisitor-inl.h:70:58: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::space::ImageSpace::PatchObjectVisitor; JavaLangRefVisitor = art::gc::space::ImageSpace::PatchObjectVisitor]' art/runtime/gc/space/image_space.cc:502:49: required from 'void art::gc::space::ImageSpace::PatchObjectVisitor::VisitObject(art::mirror::Object*) [with art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor; NativeVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor]' art/runtime/gc/space/image_space.cc:1675:39: required from 'static void art::gc::space::ImageSpace::BootImageLoader::DoRelocateSpaces(const std::vector >&, uint32_t) [with art::PointerSize kPointerSize = art::PointerSize::k64; uint32_t = unsigned int]' art/runtime/gc/space/image_space.cc:1736:41: required from here art/runtime/mirror/class_loader.h:48:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/libartbase/base/file_utils.h:26, from art/runtime/native/dalvik_system_DexFile.cc:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/logging.h:22, from art/runtime/native/dalvik_system_DexFile.cc:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:28: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::gc::space::ImageSpace::PatchObjectVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::space::ImageSpace::PatchObjectVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::space::ImageSpace::PatchObjectVisitor; JavaLangRefVisitor = art::gc::space::ImageSpace::PatchObjectVisitor]' art/runtime/gc/space/image_space.cc:502:49: required from 'void art::gc::space::ImageSpace::PatchObjectVisitor::VisitObject(art::mirror::Object*) [with art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor; NativeVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor]' art/runtime/gc/space/image_space.cc:1675:39: required from 'static void art::gc::space::ImageSpace::BootImageLoader::DoRelocateSpaces(const std::vector >&, uint32_t) [with art::PointerSize kPointerSize = art::PointerSize::k64; uint32_t = unsigned int]' art/runtime/gc/space/image_space.cc:1736:41: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::gc::space::ImageSpace::PatchObjectVisitor]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::gc::space::ImageSpace::PatchObjectVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::space::ImageSpace::PatchObjectVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::gc::space::ImageSpace::PatchObjectVisitor; JavaLangRefVisitor = art::gc::space::ImageSpace::PatchObjectVisitor]' art/runtime/gc/space/image_space.cc:502:49: required from 'void art::gc::space::ImageSpace::PatchObjectVisitor::VisitObject(art::mirror::Object*) [with art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor; NativeVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor]' art/runtime/gc/space/image_space.cc:1675:39: required from 'static void art::gc::space::ImageSpace::BootImageLoader::DoRelocateSpaces(const std::vector >&, uint32_t) [with art::PointerSize kPointerSize = art::PointerSize::k64; uint32_t = unsigned int]' art/runtime/gc/space/image_space.cc:1736:41: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/handle_scope-inl.h:25, from art/runtime/native/dalvik_system_DexFile.cc:38: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_utils.h:23, from art/runtime/mirror/string.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26, from art/runtime/native/dalvik_system_DexFile.cc:42: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/mirror/array.h:24: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/libartbase/base/file_utils.h:26, from art/runtime/native/dalvik_system_VMDebug.cc:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/instrumentation.cc: In lambda function: art/runtime/instrumentation.cc:1404:30: warning: possibly dangling reference to a temporary [-Wdangling-reference] 1404 | const Instruction& instr = m->DexInstructions().InstructionAt(stack_visitor->GetDexPc()); | ^~~~~ art/runtime/instrumentation.cc:1404:72: note: the temporary was destroyed at the end of the full expression 'm->art::ArtMethod::DexInstructions().art::CodeItemInstructionAccessor::InstructionAt(stack_visitor->art::StackVisitor::GetDexPc(true))' 1404 | const Instruction& instr = m->DexInstructions().InstructionAt(stack_visitor->GetDexPc()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libartbase/base/time_utils.h:26, from art/libartbase/base/histogram-inl.h:30, from art/runtime/native/dalvik_system_VMDebug.cc:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object.h:24, from art/runtime/image.h:24, from art/runtime/gc/space/image_space.h:21: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ host C++: libart <= art/runtime/native/dalvik_system_VMRuntime.cc art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/dalvik_system_VMStack.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/dalvik_system_ZygoteHooks.cc In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/debugger.h:39, from art/runtime/native/dalvik_system_VMDebug.cc:31: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/libartbase/base/atomic.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const Elf64_Shdr&}; _Tp = Elf64_Shdr; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'uint32_t art::mirror::Class::GetReferenceInstanceOffsets() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:913:55: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/heap.cc:2021:25: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/method_verifier.h:32, from art/runtime/interpreter/interpreter_switch_impl-inl.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:22, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/native/dalvik_system_VMDebug.cc:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/libartbase/base/atomic.h:23: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class_loader-inl.h:41:64: required from 'void art::mirror::ClassLoader::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitClasses = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder]' art/runtime/mirror/object-refvisitor-inl.h:70:58: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/heap.cc:2021:25: required from here art/runtime/mirror/class_loader.h:48:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/handle.h:20: art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::VarTypeOffset()': art/runtime/mirror/var_handle.h:163:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); art/runtime/mirror/var_handle.h:163:25: note: in expansion of macro 'OFFSETOF_MEMBER' 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType0Offset()': art/runtime/mirror/var_handle.h:167:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); art/runtime/mirror/var_handle.h:167:25: note: in expansion of macro 'OFFSETOF_MEMBER' 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType1Offset()': art/runtime/mirror/var_handle.h:171:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); art/runtime/mirror/var_handle.h:171:25: note: in expansion of macro 'OFFSETOF_MEMBER' 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::AccessModesBitMaskOffset()': art/runtime/mirror/var_handle.h:175:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); art/runtime/mirror/var_handle.h:175:25: note: in expansion of macro 'OFFSETOF_MEMBER' 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::FieldVarHandle::ArtFieldOffset()': art/runtime/mirror/var_handle.h:202:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::FieldVarHandle' is conditionally-supported [-Winvalid-offsetof] 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); art/runtime/mirror/var_handle.h:202:25: note: in expansion of macro 'OFFSETOF_MEMBER' 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteArrayViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:242:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteArrayViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:242:25: note: in expansion of macro 'OFFSETOF_MEMBER' 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteBufferViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:282:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteBufferViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:282:25: note: in expansion of macro 'OFFSETOF_MEMBER' 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = long long unsigned int; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'art::JDWP::JdwpError art::JDWP::VM_InstanceCounts(JdwpState*, Request*, ExpandBuf*)' at art/runtime/jdwp/jdwp_handler.cc:403:24: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jni/check_jni.cc:24: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/native/dalvik_system_ZygoteHooks.cc:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:30, from art/runtime/art_method-inl.h:20, from art/runtime/native/dalvik_system_VMStack.cc:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/native/dalvik_system_VMRuntime.cc:32: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37, from art/runtime/art_method-inl.h:20, from art/runtime/native/dalvik_system_ZygoteHooks.cc:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter.cc: In function 'art::JValue art::interpreter::Execute(art::Thread*, const art::CodeItemDataAccessor&, art::ShadowFrame&, art::JValue, bool, bool)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::interpreter::InterpreterImplKind' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:359:7: note: in expansion of macro 'DCHECK_EQ' 359 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:359:7: note: in expansion of macro 'DCHECK_EQ' 359 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::interpreter::InterpreterImplKind' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:359:7: note: in expansion of macro 'DCHECK_EQ' 359 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:359:7: note: in expansion of macro 'DCHECK_EQ' 359 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::interpreter::InterpreterImplKind' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:359:7: note: in expansion of macro 'DCHECK_EQ' 359 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:359:7: note: in expansion of macro 'DCHECK_EQ' 359 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::interpreter::InterpreterImplKind' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:359:7: note: in expansion of macro 'DCHECK_EQ' 359 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:359:7: note: in expansion of macro 'DCHECK_EQ' 359 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::interpreter::InterpreterImplKind' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:359:7: note: in expansion of macro 'DCHECK_EQ' 359 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:359:7: note: in expansion of macro 'DCHECK_EQ' 359 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::interpreter::InterpreterImplKind' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:359:7: note: in expansion of macro 'DCHECK_EQ' 359 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:359:7: note: in expansion of macro 'DCHECK_EQ' 359 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::interpreter::InterpreterImplKind' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:387:7: note: in expansion of macro 'DCHECK_EQ' 387 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:387:7: note: in expansion of macro 'DCHECK_EQ' 387 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::interpreter::InterpreterImplKind' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:387:7: note: in expansion of macro 'DCHECK_EQ' 387 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:387:7: note: in expansion of macro 'DCHECK_EQ' 387 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::interpreter::InterpreterImplKind' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:387:7: note: in expansion of macro 'DCHECK_EQ' 387 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:387:7: note: in expansion of macro 'DCHECK_EQ' 387 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::interpreter::InterpreterImplKind' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:387:7: note: in expansion of macro 'DCHECK_EQ' 387 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:387:7: note: in expansion of macro 'DCHECK_EQ' 387 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::interpreter::InterpreterImplKind' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:387:7: note: in expansion of macro 'DCHECK_EQ' 387 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:387:7: note: in expansion of macro 'DCHECK_EQ' 387 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::interpreter::InterpreterImplKind' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:387:7: note: in expansion of macro 'DCHECK_EQ' 387 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/interpreter/interpreter.cc:387:7: note: in expansion of macro 'DCHECK_EQ' 387 | DCHECK_EQ(kInterpreterImplKind, kSwitchImplKind); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/libartbase/base/atomic.h:23: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {art::InternTable::Table::InternalTable}; _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37, from art/runtime/art_method-inl.h:20, from art/runtime/native/dalvik_system_VMRuntime.cc:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/heap-inl.h:32: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {art::InternTable::Table::InternalTable}; _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/interpreter/interpreter_switch_impl-inl.h: In constructor 'art::interpreter::InstructionHandler::InstructionHandler(art::interpreter::SwitchImplContext*, const art::instrumentation::Instrumentation*, art::Thread*, art::ShadowFrame&, uint16_t, const art::Instruction*&, uint16_t, bool&)': art/runtime/interpreter/interpreter_switch_impl-inl.h:2587:42: warning: declaration of 'exit_interpreter_loop' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2587 | bool& exit_interpreter_loop) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2612:9: note: shadowed declaration is here 2612 | bool& exit_interpreter_loop; | ^~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2586:45: warning: declaration of 'inst_data' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2586 | uint16_t inst_data, | ~~~~~~~~~^~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2611:18: note: shadowed declaration is here 2611 | uint16_t const inst_data; | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2585:56: warning: declaration of 'inst' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2585 | const Instruction*& inst, | ~~~~~~~~~~~~~~~~~~~~^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2610:23: note: shadowed declaration is here 2610 | const Instruction*& inst; | ^~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2584:45: warning: declaration of 'dex_pc' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2584 | uint16_t dex_pc, | ~~~~~~~~~^~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2609:18: note: shadowed declaration is here 2609 | uint32_t const dex_pc; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2583:49: warning: declaration of 'shadow_frame' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2583 | ShadowFrame& shadow_frame, | ~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2608:16: note: shadowed declaration is here 2608 | ShadowFrame& shadow_frame; | ^~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2582:44: warning: declaration of 'self' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2582 | Thread* self, | ~~~~~~~~^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2607:17: note: shadowed declaration is here 2607 | Thread* const self; | ^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2581:76: warning: declaration of 'instrumentation' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2581 | const instrumentation::Instrumentation* instrumentation, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2606:49: note: shadowed declaration is here 2606 | const instrumentation::Instrumentation* const instrumentation; | ^~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2580:55: warning: declaration of 'ctx' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2580 | ALWAYS_INLINE InstructionHandler(SwitchImplContext* ctx, | ~~~~~~~~~~~~~~~~~~~^~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2605:28: note: shadowed declaration is here 2605 | SwitchImplContext* const ctx; | ^~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/native_stack_dump.cc:19: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {art::debug::ElfCompilationUnit}; _Tp = art::debug::ElfCompilationUnit; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h: In member function 'art::ObjPtr > art::mirror::MethodType::GetPTypes()': art/runtime/mirror/method_type-inl.h:28:69: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 28 | return GetFieldObject>(OFFSET_OF_OBJECT_MEMBER(MethodType, p_types_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h:28:45: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 28 | return GetFieldObject>(OFFSET_OF_OBJECT_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h: In member function 'art::ObjPtr art::mirror::MethodType::GetRType()': art/runtime/mirror/method_type-inl.h:36:56: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodType, r_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h:36:32: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::CallsiteTypeOffset()': art/runtime/mirror/emulated_stack_frame.h:70:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 70 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, callsite_type_)); art/runtime/mirror/emulated_stack_frame.h:70:25: note: in expansion of macro 'OFFSETOF_MEMBER' 70 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, callsite_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::TypeOffset()': art/runtime/mirror/emulated_stack_frame.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, type_)); art/runtime/mirror/emulated_stack_frame.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, type_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::ReferencesOffset()': art/runtime/mirror/emulated_stack_frame.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, references_)); art/runtime/mirror/emulated_stack_frame.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, references_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::StackFrameOffset()': art/runtime/mirror/emulated_stack_frame.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, stack_frame_)); art/runtime/mirror/emulated_stack_frame.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, stack_frame_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl-inl.h: In member function 'art::ObjPtr art::mirror::MethodHandle::GetMethodType()': art/runtime/mirror/method_handle_impl-inl.h:29:69: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl-inl.h:29:45: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl-inl.h: In member function 'art::ObjPtr art::mirror::MethodHandle::GetNominalType()': art/runtime/mirror/method_handle_impl-inl.h:33:69: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl-inl.h:33:45: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/interpreter/interpreter_common.h:43: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/interpreter/interpreter_common.h:43: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::VarTypeOffset()': art/runtime/mirror/var_handle.h:163:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); art/runtime/mirror/var_handle.h:163:25: note: in expansion of macro 'OFFSETOF_MEMBER' 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType0Offset()': art/runtime/mirror/var_handle.h:167:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); art/runtime/mirror/var_handle.h:167:25: note: in expansion of macro 'OFFSETOF_MEMBER' 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType1Offset()': art/runtime/mirror/var_handle.h:171:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); art/runtime/mirror/var_handle.h:171:25: note: in expansion of macro 'OFFSETOF_MEMBER' 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::AccessModesBitMaskOffset()': art/runtime/mirror/var_handle.h:175:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); art/runtime/mirror/var_handle.h:175:25: note: in expansion of macro 'OFFSETOF_MEMBER' 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::FieldVarHandle::ArtFieldOffset()': art/runtime/mirror/var_handle.h:202:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::FieldVarHandle' is conditionally-supported [-Winvalid-offsetof] 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); art/runtime/mirror/var_handle.h:202:25: note: in expansion of macro 'OFFSETOF_MEMBER' 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteArrayViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:242:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteArrayViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:242:25: note: in expansion of macro 'OFFSETOF_MEMBER' 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteBufferViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:282:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteBufferViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:282:25: note: in expansion of macro 'OFFSETOF_MEMBER' 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:888:54: required from 'void art::mirror::Object::VisitFieldsReferences(uint32_t, const Visitor&) [with bool kIsStatic = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder; uint32_t = unsigned int]' art/runtime/mirror/object-inl.h:912:65: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/heap.cc:2021:25: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/heap.cc:2021:25: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/native/dalvik_system_ZygoteHooks.cc:31: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/interpreter/interpreter_common.h:43: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/arena_allocator.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:28: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::gc::Heap::GetReferringObjects(art::VariableSizedHandleScope&, art::Handle, int32_t, std::vector >&)::ReferringObjectsFinder; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/gc/heap.cc:2021:25: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ host C++: libart <= art/runtime/native/java_lang_Class.cc art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/interpreter/unstarted_runtime.cc:41: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_Object.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/method_handle_impl.h:21: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/runtime/art_field.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/art_field.h:22, from art/runtime/art_field-inl.h:20, from art/runtime/native/java_lang_Class.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_field.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/native_stack_dump.cc:54: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_String.cc art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/method_handle_impl.h:22: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jni/jni_internal.h:23, from art/runtime/native/java_lang_Object.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/gc_root-inl.h:24: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/gc/heap.cc:3935:6: warning: 'always_inline' function might not be inlinable [-Wattributes] 3935 | void Heap::IncrementNumberOfBytesFreedRevoke(size_t freed_bytes_revoke) { | ^~~~ In file included from art/libartbase/base/macros.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from /usr/include/c++/13.2.1/cstddef:50, from art/libdexfile/dex/dex_file_types.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from /usr/include/c++/13.2.1/random:42, from art/libartbase/base/utils.h:23: art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_StringFactory.cc art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/jit/jit.cc:35: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/specfun.h:43, from /usr/include/c++/13.2.1/cmath:3699, from /usr/include/c++/13.2.1/random:40: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_instruction.h:20: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_utils.h:23, from art/runtime/mirror/array.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/string.h:22, from art/runtime/mirror/method_type.h:22: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/monitor_objects_stack_visitor.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/libartbase/base/atomic.h:23: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/libartbase/base/atomic.h:23: art/runtime/mirror/stack_trace_element.h: In member function 'int32_t art::mirror::StackTraceElement::GetLineNumber()': art/runtime/mirror/stack_trace_element.h:39:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 39 | return GetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.h:39:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 39 | return GetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/method_verifier.h:32, from art/runtime/interpreter/interpreter_switch_impl-inl.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::VarTypeOffset()': art/runtime/mirror/var_handle.h:163:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); art/runtime/mirror/var_handle.h:163:25: note: in expansion of macro 'OFFSETOF_MEMBER' 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType0Offset()': art/runtime/mirror/var_handle.h:167:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); art/runtime/mirror/var_handle.h:167:25: note: in expansion of macro 'OFFSETOF_MEMBER' 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType1Offset()': art/runtime/mirror/var_handle.h:171:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); art/runtime/mirror/var_handle.h:171:25: note: in expansion of macro 'OFFSETOF_MEMBER' 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::AccessModesBitMaskOffset()': art/runtime/mirror/var_handle.h:175:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); art/runtime/mirror/var_handle.h:175:25: note: in expansion of macro 'OFFSETOF_MEMBER' 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::FieldVarHandle::ArtFieldOffset()': art/runtime/mirror/var_handle.h:202:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::FieldVarHandle' is conditionally-supported [-Winvalid-offsetof] 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); art/runtime/mirror/var_handle.h:202:25: note: in expansion of macro 'OFFSETOF_MEMBER' 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteArrayViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:242:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteArrayViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:242:25: note: in expansion of macro 'OFFSETOF_MEMBER' 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteBufferViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:282:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteBufferViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:282:25: note: in expansion of macro 'OFFSETOF_MEMBER' 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/common_dex_operations.h:39, from art/runtime/interpreter/interpreter_common.h:39: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/common_throws.h:22, from art/runtime/native/java_lang_String.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/mirror/object.h:20, from art/runtime/mirror/object-inl.h:20, from art/runtime/native/java_lang_Object.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/mirror/emulated_stack_frame.h:24: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/specfun.h:43, from /usr/include/c++/13.2.1/cmath:3699, from /usr/include/c++/13.2.1/random:40, from art/libartbase/base/utils.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/indirect_reference_table.h:32, from art/runtime/jni/java_vm_ext.h:24: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/class_linker.cc:181:45: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24, from art/runtime/native_stack_dump.cc:56: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/handle_scope-inl.h:25, from art/runtime/native/java_lang_String.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/entrypoints/entrypoint_utils-inl.h:41: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31, from art/runtime/native/dalvik_system_DexFile.cc:30: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/istream:40, from /usr/include/c++/13.2.1/sstream:40, from art/runtime/native/dalvik_system_DexFile.cc:19: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassSize() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/class_linker.cc:797:3: required from here art/runtime/mirror/class.h:486:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 486 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:486:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 486 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_System.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/common_throws.h:22, from art/runtime/native/java_lang_StringFactory.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/class_linker.cc:1820:63: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/native/dalvik_system_ZygoteHooks.cc:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h: In constructor 'art::interpreter::InstructionHandler::InstructionHandler(art::interpreter::SwitchImplContext*, const art::instrumentation::Instrumentation*, art::Thread*, art::ShadowFrame&, uint16_t, const art::Instruction*&, uint16_t, bool&)': art/runtime/interpreter/interpreter_switch_impl-inl.h:2587:42: warning: declaration of 'exit_interpreter_loop' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2587 | bool& exit_interpreter_loop) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2612:9: note: shadowed declaration is here 2612 | bool& exit_interpreter_loop; | ^~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2586:45: warning: declaration of 'inst_data' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2586 | uint16_t inst_data, | ~~~~~~~~~^~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2611:18: note: shadowed declaration is here 2611 | uint16_t const inst_data; | ^~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2585:56: warning: declaration of 'inst' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2585 | const Instruction*& inst, | ~~~~~~~~~~~~~~~~~~~~^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2610:23: note: shadowed declaration is here 2610 | const Instruction*& inst; | ^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2584:45: warning: declaration of 'dex_pc' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2584 | uint16_t dex_pc, | ~~~~~~~~~^~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2609:18: note: shadowed declaration is here 2609 | uint32_t const dex_pc; | ^~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2583:49: warning: declaration of 'shadow_frame' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2583 | ShadowFrame& shadow_frame, | ~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2608:16: note: shadowed declaration is here 2608 | ShadowFrame& shadow_frame; | ^~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2582:44: warning: declaration of 'self' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2582 | Thread* self, | ~~~~~~~~^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2607:17: note: shadowed declaration is here 2607 | Thread* const self; | ^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2581:76: warning: declaration of 'instrumentation' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2581 | const instrumentation::Instrumentation* instrumentation, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2606:49: note: shadowed declaration is here 2606 | const instrumentation::Instrumentation* const instrumentation; | ^~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2580:55: warning: declaration of 'ctx' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2580 | ALWAYS_INLINE InstructionHandler(SwitchImplContext* ctx, | ~~~~~~~~~~~~~~~~~~~^~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2605:28: note: shadowed declaration is here 2605 | SwitchImplContext* const ctx; | ^~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/runtime/mirror/object-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/interpreter/interpreter_common.h:46: art/runtime/interpreter/interpreter_switch_impl.h:59:22: warning: 'always_inline' function might not be inlinable [-Wattributes] 59 | ALWAYS_INLINE JValue ExecuteSwitchImpl(Thread* self, const CodeItemDataAccessor& accessor, | ^~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl.h:59:22: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_switch_impl.h:59:22: warning: 'always_inline' function might not be inlinable [-Wattributes] 59 | ALWAYS_INLINE JValue ExecuteSwitchImpl(Thread* self, const CodeItemDataAccessor& accessor, | ^~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl.h:59:22: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] host C++: libart <= art/runtime/native/java_lang_Thread.cc art/runtime/interpreter/interpreter.cc:43:45: warning: 'always_inline' function might not be inlinable [-Wattributes] 43 | ALWAYS_INLINE static ObjPtr ObjArg(uint32_t arg) | ^~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/jdwp/jdwp.h:26: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26, from art/runtime/native/java_lang_String.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/handle_scope-inl.h:25, from art/runtime/native/java_lang_StringFactory.cc:20: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'void art::mirror::Class::SetClassLoader(art::ObjPtr) [with bool kCheckTransaction = false]': art/runtime/class_linker.cc:2205:62: required from here art/runtime/mirror/class-inl.h:1178:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1178 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, class_loader_), new_class_loader); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1178:26: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1178 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, class_loader_), new_class_loader); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1181:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1181 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, class_loader_), new_class_loader); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1181:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1181 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, class_loader_), new_class_loader); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/method_verifier.h:32, from art/runtime/interpreter/interpreter_switch_impl-inl.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24, from art/runtime/jit/jit.cc:41: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator.h:64, from /usr/include/c++/13.2.1/bits/range_access.h:38, from /usr/include/c++/13.2.1/string_view:43, from libnativehelper/include/nativehelper/scoped_utf_chars.h:28, from art/runtime/native/dalvik_system_VMRuntime.cc:27: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_Throwable.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'void art::mirror::Class::SetClassLoader(art::ObjPtr) [with bool kCheckTransaction = true]': art/runtime/class_linker.cc:3544:24: required from here art/runtime/mirror/class-inl.h:1178:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1178 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, class_loader_), new_class_loader); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1178:26: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1178 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, class_loader_), new_class_loader); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1181:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1181 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, class_loader_), new_class_loader); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1181:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1181 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, class_loader_), new_class_loader); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/native_bridge_art_interface.h:22, from art/runtime/native_bridge_art_interface.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31, from art/runtime/native/dalvik_system_VMDebug.cc:29: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/istream:40, from /usr/include/c++/13.2.1/sstream:40, from art/runtime/native/dalvik_system_VMDebug.cc:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26, from art/runtime/native/java_lang_StringFactory.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/monitor_objects_stack_visitor.h:25: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/common_throws.h:22, from art/runtime/native/java_lang_System.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/class_loader_context.h:25, from art/runtime/native/dalvik_system_DexFile.cc:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jni/jni_internal.h:23, from art/runtime/native/java_lang_Throwable.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In static member function 'static void art::mirror::DexCache::SetNativePairPtrSize(std::atomic >*, size_t, art::mirror::NativeDexCachePair, art::PointerSize) [with T = art::ArtField]', inlined from 'void art::mirror::DexCache::SetResolvedField(uint32_t, art::ArtField*, art::PointerSize)' at art/runtime/mirror/dex_cache-inl.h:256:23, inlined from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = false]' at art/runtime/mirror/field-inl.h:86:45: art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 329 | AtomicStoreRelease16B(&array[idx], v); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {Elf64_Shdr}; _Tp = Elf64_Shdr; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_VMClassLoader.cc art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const Elf64_Phdr&}; _Tp = Elf64_Phdr; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h: In constructor 'art::interpreter::InstructionHandler::InstructionHandler(art::interpreter::SwitchImplContext*, const art::instrumentation::Instrumentation*, art::Thread*, art::ShadowFrame&, uint16_t, const art::Instruction*&, uint16_t, bool&)': art/runtime/interpreter/interpreter_switch_impl-inl.h:2587:42: warning: declaration of 'exit_interpreter_loop' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2587 | bool& exit_interpreter_loop) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2612:9: note: shadowed declaration is here 2612 | bool& exit_interpreter_loop; | ^~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2586:45: warning: declaration of 'inst_data' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2586 | uint16_t inst_data, | ~~~~~~~~~^~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2611:18: note: shadowed declaration is here 2611 | uint16_t const inst_data; | ^~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2585:56: warning: declaration of 'inst' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2585 | const Instruction*& inst, | ~~~~~~~~~~~~~~~~~~~~^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2610:23: note: shadowed declaration is here 2610 | const Instruction*& inst; | ^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2584:45: warning: declaration of 'dex_pc' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2584 | uint16_t dex_pc, | ~~~~~~~~~^~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2609:18: note: shadowed declaration is here 2609 | uint32_t const dex_pc; | ^~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2583:49: warning: declaration of 'shadow_frame' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2583 | ShadowFrame& shadow_frame, | ~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2608:16: note: shadowed declaration is here 2608 | ShadowFrame& shadow_frame; | ^~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2582:44: warning: declaration of 'self' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2582 | Thread* self, | ~~~~~~~~^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2607:17: note: shadowed declaration is here 2607 | Thread* const self; | ^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2581:76: warning: declaration of 'instrumentation' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2581 | const instrumentation::Instrumentation* instrumentation, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2606:49: note: shadowed declaration is here 2606 | const instrumentation::Instrumentation* const instrumentation; | ^~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2580:55: warning: declaration of 'ctx' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2580 | ALWAYS_INLINE InstructionHandler(SwitchImplContext* ctx, | ~~~~~~~~~~~~~~~~~~~^~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2605:28: note: shadowed declaration is here 2605 | SwitchImplContext* const ctx; | ^~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'uint32_t art::mirror::Class::GetReferenceInstanceOffsets() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/class_linker.cc:8370:65: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/runtime/native/java_lang_System.cc:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libprofile/./profile/profile_compilation_info.h:34, from art/runtime/jit/jit.cc:42: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ host C++: libart <= art/runtime/native/java_lang_invoke_MethodHandleImpl.cc art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:66: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Elf64_Phdr; _Alloc = std::allocator]', inlined from 'std::vector art::ElfBuilder::MakeProgramHeaders() [with ElfTypes = art::ElfTypes64]' at art/libelffile/elf/elf_builder.h:868:22: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Elf64_Phdr; _Alloc = std::allocator]', inlined from 'std::vector art::ElfBuilder::MakeProgramHeaders() [with ElfTypes = art::ElfTypes64]' at art/libelffile/elf/elf_builder.h:876:22: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Elf64_Phdr; _Alloc = std::allocator]', inlined from 'std::vector art::ElfBuilder::MakeProgramHeaders() [with ElfTypes = art::ElfTypes64]' at art/libelffile/elf/elf_builder.h:906:26: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Elf64_Phdr; _Alloc = std::allocator]', inlined from 'std::vector art::ElfBuilder::MakeProgramHeaders() [with ElfTypes = art::ElfTypes64]' at art/libelffile/elf/elf_builder.h:923:26: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/type_reference.h:25, from art/libprofile/./profile/profile_compilation_info.h:35: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In static member function 'static void art::mirror::DexCache::SetNativePairPtrSize(std::atomic >*, size_t, art::mirror::NativeDexCachePair, art::PointerSize) [with T = art::ArtField]', inlined from 'void art::mirror::DexCache::SetResolvedField(uint32_t, art::ArtField*, art::PointerSize)' at art/runtime/mirror/dex_cache-inl.h:256:23, inlined from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = true]' at art/runtime/mirror/field-inl.h:86:45: art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 329 | AtomicStoreRelease16B(&array[idx], v); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/scoped_thread_state_change.h:22, from art/runtime/native/scoped_fast_native_object_access.h:22, from art/runtime/native/scoped_fast_native_object_access-inl.h:20, from art/runtime/native/java_lang_Throwable.cc:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/list:73, from art/runtime/monitor.h:26: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/list:62: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/common_throws.h:22, from art/runtime/native/java_lang_Thread.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_ref_FinalizerReference.cc In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/runtime_options.h:34: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/scoped_thread_state_change-inl.h:27, from art/runtime/native/scoped_fast_native_object_access-inl.h:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:23, from art/runtime/art_field.h:22: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from /usr/include/c++/13.2.1/random:42: art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::CallsiteTypeOffset()': art/runtime/mirror/emulated_stack_frame.h:70:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 70 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, callsite_type_)); art/runtime/mirror/emulated_stack_frame.h:70:25: note: in expansion of macro 'OFFSETOF_MEMBER' 70 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, callsite_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::TypeOffset()': art/runtime/mirror/emulated_stack_frame.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, type_)); art/runtime/mirror/emulated_stack_frame.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::ReferencesOffset()': art/runtime/mirror/emulated_stack_frame.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, references_)); art/runtime/mirror/emulated_stack_frame.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, references_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::StackFrameOffset()': art/runtime/mirror/emulated_stack_frame.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, stack_frame_)); art/runtime/mirror/emulated_stack_frame.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, stack_frame_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_ref_Reference.cc art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/scoped_thread_state_change-inl.h:27, from art/runtime/native/scoped_fast_native_object_access-inl.h:23, from art/runtime/native/java_lang_Thread.cc:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Zygote' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Help' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ShowVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath_a' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathLocations' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Image' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CheckJni' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniOptsForceCopy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpProvider' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.def:48:43: warning: declaration of 'art::RuntimeArgumentMap::Key art::RuntimeArgumentMap::JdwpProvider' changes meaning of 'JdwpProvider' [-Wchanges-meaning] 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:109: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ art/runtime/runtime_options.def:48:22: note: used here to mean 'enum class art::JdwpProvider' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:63: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ In file included from art/runtime/runtime.h:40, from art/runtime/mirror/array-inl.h:27: art/runtime/jdwp_provider.h:26:12: note: declared here 26 | enum class JdwpProvider { | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryMaximumSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryInitialSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapGrowthLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMinFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMaxFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NonMovingSpaceCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapTargetUtilization' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForegroundHeapGrowthMultiplier' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ParallelGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ConcGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FinalizerTimeoutMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MaxSpinsBeforeThinLockInflation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongPauseLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongGCLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ThreadSuspendTimeout' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpGCPerformanceOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoBeforeGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoAfterGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpJITInfoOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'IgnoreMaxFootprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LowMemoryMode' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseTLAB' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'EnableHSpaceCompactForOOM' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseJitCompilation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpNativeStackOnSigQuit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MadviseRandomAccess' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCompileThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITWarmupThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITOsrThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPriorityThreadWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITInvokeTransitionWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPoolThreadPthreadPriority' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheInitialCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheMaxCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HSpaceCompactForOOMMinIntervalsMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'PropertiesList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Relocate' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageDex2Oat' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Interpret' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GcOption' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectSpace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BackgroundGc' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DisableExplicitGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoSigChain' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForceNativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verbose' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackDumpLockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFile' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFileSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceStreaming' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileClock' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileSaverOpts' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Compiler' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageCompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verify' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'TargetSdkVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HiddenApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CorePlatformApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ZygoteMaxFailedBoots' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoDexFileFallback' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CpuAbiList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Fingerprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Experimental' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentLib' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Plugins' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathDexList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageInstructionSet' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerCallbacksPtr' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookIsSensitiveThread' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookVfprintf' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookExit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookAbort' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'SlowDebug' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GlobalRefAllocStackTraceLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseStderrLogger' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'OnlyUseSystemOatFiles' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'VerifierLoggingThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageSpaceLoadingOrder' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FastClassNotFoundException' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_reflect_Array.cc libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/art_method.h:30, from art/runtime/native/java_lang_invoke_MethodHandleImpl.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-refvisitor-inl.h:82:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::VerifyStringInterningVisitor; JavaLangRefVisitor = art::VerifyStringInterningVisitor]' art/runtime/class_linker.cc:1418:50: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/mem_map.h:28, from art/libartbase/base/zip_archive.h:27, from art/runtime/native/java_lang_VMClassLoader.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.cc:45: art/runtime/runtime_options.def: At global scope: art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Zygote' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Help' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ShowVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/native_stack_dump.cc: In function 'void art::DumpNativeStack(std::ostream&, pid_t, BacktraceMap*, const char*, ArtMethod*, void*, bool)': art/runtime/native_stack_dump.cc:365:61: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=] 365 | os << StringPrintf(Is64BitInstructionSet(kRuntimeISA) ? "%016" PRIx64 " ???" | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ 366 | : "%08" PRIx64 " ???", | ~~~~~~~~~~~~~~~~~~~~~~ 367 | it->pc); | ~~~~~~ | | | unsigned int art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath_a' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathLocations' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Image' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/native_stack_dump.cc:369:61: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=] 369 | os << StringPrintf(Is64BitInstructionSet(kRuntimeISA) ? "%016" PRIx64 " " | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ 370 | : "%08" PRIx64 " ", | ~~~~~~~~~~~~~~~~~~~ 371 | it->rel_pc); | ~~~~~~~~~~ | | | unsigned int art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CheckJni' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniOptsForceCopy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpProvider' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.def:48:43: warning: declaration of 'art::RuntimeArgumentMap::Key art::RuntimeArgumentMap::JdwpProvider' changes meaning of 'JdwpProvider' [-Wchanges-meaning] 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:109: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.def:48:22: note: used here to mean 'enum class art::JdwpProvider' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:63: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/native_stack_dump.cc:373:28: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=] 373 | os << StringPrintf("", it->map.start); | ^~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~ | | | unsigned int In file included from art/runtime/runtime.h:40, from art/runtime/mirror/array-inl.h:27: art/runtime/jdwp_provider.h:26:12: note: declared here 26 | enum class JdwpProvider { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryMaximumSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryInitialSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapGrowthLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMinFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMaxFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NonMovingSpaceCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapTargetUtilization' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/native_stack_dump.cc:378:28: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'unsigned int' [-Wformat=] 378 | os << StringPrintf(" (offset %" PRIx64 ")", it->map.offset); | ^~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ | | | unsigned int art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForegroundHeapGrowthMultiplier' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ParallelGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ConcGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FinalizerTimeoutMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MaxSpinsBeforeThinLockInflation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongPauseLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongGCLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ThreadSuspendTimeout' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpGCPerformanceOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoBeforeGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoAfterGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpJITInfoOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'IgnoreMaxFootprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LowMemoryMode' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseTLAB' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'EnableHSpaceCompactForOOM' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseJitCompilation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpNativeStackOnSigQuit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MadviseRandomAccess' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCompileThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITWarmupThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITOsrThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPriorityThreadWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITInvokeTransitionWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPoolThreadPthreadPriority' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheInitialCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheMaxCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HSpaceCompactForOOMMinIntervalsMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'PropertiesList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26, from art/runtime/class_linker.h:29, from art/runtime/native/java_lang_VMClassLoader.cc:20: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Relocate' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageDex2Oat' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Interpret' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GcOption' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectSpace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BackgroundGc' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DisableExplicitGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoSigChain' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForceNativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verbose' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackDumpLockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFile' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFileSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceStreaming' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileClock' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileSaverOpts' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Compiler' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageCompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verify' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'TargetSdkVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HiddenApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CorePlatformApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ZygoteMaxFailedBoots' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoDexFileFallback' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CpuAbiList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Fingerprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from art/runtime/native/java_lang_Class.cc:19: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Experimental' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentLib' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Plugins' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathDexList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageInstructionSet' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerCallbacksPtr' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookIsSensitiveThread' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookVfprintf' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookExit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookAbort' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'SlowDebug' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GlobalRefAllocStackTraceLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseStderrLogger' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'OnlyUseSystemOatFiles' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'VerifierLoggingThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageSpaceLoadingOrder' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FastClassNotFoundException' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.cc:46: art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_reflect_Constructor.cc art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/jit/profiling_info.cc:22: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/heap.h:28, from art/runtime/native/java_lang_ref_FinalizerReference.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/heap.h:29: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/handle_scope-inl.h:25, from art/runtime/native/java_lang_invoke_MethodHandleImpl.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38, from art/runtime/art_method-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/handle_scope-inl.h:25, from art/runtime/native/java_lang_VMClassLoader.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/heap.h:28, from art/runtime/native/java_lang_ref_Reference.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/heap.h:29: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/interpreter/interpreter_common.h:43: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30, from art/runtime/class_linker-inl.h:22, from art/runtime/mirror/array.cc:23: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/mirror/field-inl.h:22, from art/runtime/native/java_lang_invoke_MethodHandleImpl.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/file_utils.h:24: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26, from art/runtime/native/java_lang_VMClassLoader.cc:27: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/interpreter/interpreter_intrinsics.cc:306:22: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/art_field.h:22, from art/runtime/art_field-inl.h:20, from art/runtime/class_linker-inl.h:22, from art/runtime/native/java_lang_reflect_Array.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_field.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26, from art/runtime/native/java_lang_ref_FinalizerReference.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:30, from art/runtime/art_method-inl.h:20, from art/runtime/native/java_lang_reflect_Constructor.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26, from art/runtime/native/java_lang_ref_Reference.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/runtime.h:38, from art/runtime/mirror/array-inl.h:27: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/locks.h:23: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/native_stack_dump.cc:57: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:888:54: required from 'void art::mirror::Object::VisitFieldsReferences(uint32_t, const Visitor&) [with bool kIsStatic = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::VerifyStringInterningVisitor; uint32_t = unsigned int]' art/runtime/mirror/object-inl.h:912:65: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::VerifyStringInterningVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::VerifyStringInterningVisitor; JavaLangRefVisitor = art::VerifyStringInterningVisitor]' art/runtime/class_linker.cc:1418:50: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::VerifyStringInterningVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::VerifyStringInterningVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::VerifyStringInterningVisitor; JavaLangRefVisitor = art::VerifyStringInterningVisitor]' art/runtime/class_linker.cc:1418:50: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator.h:64, from /usr/include/c++/13.2.1/bits/range_access.h:38, from /usr/include/c++/13.2.1/string_view:43, from art/runtime/common_throws.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/locks.h:23: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator.h:64, from /usr/include/c++/13.2.1/bits/range_access.h:38, from /usr/include/c++/13.2.1/string_view:43, from art/runtime/common_throws.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/locks.h:23: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator.h:64, from /usr/include/c++/13.2.1/bits/range_access.h:38, from /usr/include/c++/13.2.1/string_view:43, from art/runtime/common_throws.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/functional:67, from libbase/include/android-base/logging.h:60: /usr/include/c++/13.2.1/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Val_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]': /usr/include/c++/13.2.1/bits/stl_algo.h:1792:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1792 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/runtime/art_method.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]': /usr/include/c++/13.2.1/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1812 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/method_verifier.h:32, from art/runtime/interpreter/interpreter_switch_impl-inl.h:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/interpreter/interpreter.h:22: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 149 | ALWAYS_INLINE bool DoFieldPutCommon(Thread* self, | ^~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 91 | static ALWAYS_INLINE bool DoFieldGetCommon(Thread* self, | ^~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::VerifyStringInterningVisitor]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::VerifyStringInterningVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::VerifyStringInterningVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::VerifyStringInterningVisitor; JavaLangRefVisitor = art::VerifyStringInterningVisitor]' art/runtime/class_linker.cc:1418:50: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/interpreter/interpreter_common.h:39: art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetDexFieldIndex()': art/runtime/mirror/field.h:42:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:42:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetAccessFlags()': art/runtime/mirror/field.h:48:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:48:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'int32_t art::mirror::Field::GetOffset()': art/runtime/mirror/field.h:68:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:68:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetDeclaringClass()': art/runtime/mirror/field-inl.h:33:56: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:33:32: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetType()': art/runtime/mirror/field-inl.h:41:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:41:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/mirror/executable.cc:19: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/native/scoped_fast_native_object_access-inl.h:22: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator.h:64, from /usr/include/c++/13.2.1/bits/range_access.h:38, from /usr/include/c++/13.2.1/string_view:43, from art/runtime/common_throws.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from libnativehelper/include/nativehelper/scoped_utf_chars.h:19: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h: In constructor 'art::interpreter::InstructionHandler::InstructionHandler(art::interpreter::SwitchImplContext*, const art::instrumentation::Instrumentation*, art::Thread*, art::ShadowFrame&, uint16_t, const art::Instruction*&, uint16_t, bool&)': art/runtime/interpreter/interpreter_switch_impl-inl.h:2587:42: warning: declaration of 'exit_interpreter_loop' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2587 | bool& exit_interpreter_loop) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2612:9: note: shadowed declaration is here 2612 | bool& exit_interpreter_loop; | ^~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2586:45: warning: declaration of 'inst_data' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2586 | uint16_t inst_data, | ~~~~~~~~~^~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2611:18: note: shadowed declaration is here 2611 | uint16_t const inst_data; | ^~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2585:56: warning: declaration of 'inst' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2585 | const Instruction*& inst, | ~~~~~~~~~~~~~~~~~~~~^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2610:23: note: shadowed declaration is here 2610 | const Instruction*& inst; | ^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2584:45: warning: declaration of 'dex_pc' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2584 | uint16_t dex_pc, | ~~~~~~~~~^~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2609:18: note: shadowed declaration is here 2609 | uint32_t const dex_pc; | ^~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2583:49: warning: declaration of 'shadow_frame' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2583 | ShadowFrame& shadow_frame, | ~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2608:16: note: shadowed declaration is here 2608 | ShadowFrame& shadow_frame; | ^~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2582:44: warning: declaration of 'self' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2582 | Thread* self, | ~~~~~~~~^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2607:17: note: shadowed declaration is here 2607 | Thread* const self; | ^~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2581:76: warning: declaration of 'instrumentation' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2581 | const instrumentation::Instrumentation* instrumentation, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2606:49: note: shadowed declaration is here 2606 | const instrumentation::Instrumentation* const instrumentation; | ^~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2580:55: warning: declaration of 'ctx' shadows a member of 'art::interpreter::InstructionHandler' [-Wshadow] 2580 | ALWAYS_INLINE InstructionHandler(SwitchImplContext* ctx, | ~~~~~~~~~~~~~~~~~~~^~~ art/runtime/interpreter/interpreter_switch_impl-inl.h:2605:28: note: shadowed declaration is here 2605 | SwitchImplContext* const ctx; | ^~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jvalue.h:25, from art/runtime/interpreter/interpreter_switch_impl.h:24: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_switch_impl.h:59:22: warning: 'always_inline' function might not be inlinable [-Wattributes] 59 | ALWAYS_INLINE JValue ExecuteSwitchImpl(Thread* self, const CodeItemDataAccessor& accessor, | ^~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 137 | static ALWAYS_INLINE bool DoInvoke(Thread* self, | ^~~~~~~~ art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:157:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 157 | OBJPTR_INLINE bool operator==(std::nullptr_t, ObjPtr ptr) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/class_linker.cc:2824:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 2824 | ALWAYS_INLINE void FilterDexFileCaughtExceptions(Thread* self, ClassLinker* class_linker) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker.cc:2811:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 2811 | ALWAYS_INLINE bool MatchesDexFileCaughtExceptions(ObjPtr throwable, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_reflect_Executable.cc art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/interpreter/interpreter_common.h:42: art/libdexfile/dex/dex_instruction-inl.h: In member function 'uint32_t art::Instruction::GetVarArgs(uint32_t*, uint16_t) const': art/libdexfile/dex/dex_instruction-inl.h:537:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 537 | arg[4] = InstA(inst_data); | ~~~~~~~^~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:539:5: note: here 539 | case 4: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:540:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 540 | arg[3] = (regList >> 12) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:542:5: note: here 542 | case 3: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:543:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 543 | arg[2] = (regList >> 8) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:545:5: note: here 545 | case 2: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:546:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 546 | arg[1] = (regList >> 4) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:548:5: note: here 548 | case 1: | ^~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/monitor.cc:23: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_common.cc: In function 'art::ObjPtr art::interpreter::GetClassForBootstrapArgument(art::EncodedArrayValueIterator::ValueType)': art/runtime/interpreter/interpreter_common.cc:954:1: warning: control reaches end of non-void function [-Wreturn-type] 954 | } | ^ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_common.cc: In function 'bool art::interpreter::GetArgumentForBootstrapMethod(art::Thread*, art::ArtMethod*, art::EncodedArrayValueIterator::ValueType, const art::JValue*, art::JValue*)': art/runtime/interpreter/interpreter_common.cc:1036:1: warning: control reaches end of non-void function [-Wreturn-type] 1036 | } | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/libartbase/base/atomic.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_common.cc: In function 'bool art::interpreter::PackArgumentForBootstrapMethod(art::Thread*, art::ArtMethod*, art::CallSiteArrayValueIterator*, art::ShadowFrameSetter*)': art/runtime/interpreter/interpreter_common.cc:1079:1: warning: control reaches end of non-void function [-Wreturn-type] 1079 | } | ^ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/mirror/dex_cache.cc:19: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/dex_cache.h:24: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/interpreter/interpreter_common.h:42: art/libdexfile/dex/dex_instruction-inl.h: In member function 'uint32_t art::Instruction::GetVarArgs(uint32_t*, uint16_t) const': art/libdexfile/dex/dex_instruction-inl.h:537:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 537 | arg[4] = InstA(inst_data); | ~~~~~~~^~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:539:5: note: here 539 | case 4: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:540:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 540 | arg[3] = (regList >> 12) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:542:5: note: here 542 | case 3: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:543:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 543 | arg[2] = (regList >> 8) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:545:5: note: here 545 | case 2: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:546:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 546 | arg[1] = (regList >> 4) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:548:5: note: here 548 | case 1: | ^~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_reflect_Field.cc In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/native/scoped_fast_native_object_access-inl.h:22: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/native/native_util.h:22, from art/runtime/native/java_lang_Throwable.cc:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetDexFieldIndex()': art/runtime/mirror/field.h:42:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:42:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetAccessFlags()': art/runtime/mirror/field.h:48:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:48:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'int32_t art::mirror::Field::GetOffset()': art/runtime/mirror/field.h:68:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:68:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/runtime.h:38, from art/runtime/mirror/array-inl.h:27: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/jvalue.h:25, from art/runtime/interpreter/interpreter_switch_impl.h:24: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_switch_impl.h:59:22: warning: 'always_inline' function might not be inlinable [-Wattributes] 59 | ALWAYS_INLINE JValue ExecuteSwitchImpl(Thread* self, const CodeItemDataAccessor& accessor, | ^~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 137 | static ALWAYS_INLINE bool DoInvoke(Thread* self, | ^~~~~~~~ art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/casts.h:27, from art/runtime/native/dalvik_system_DexFile.cc:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/art_method.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/art_method.h:30, from art/runtime/art_method-inl.h:20, from art/runtime/native/java_lang_reflect_Executable.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 137 | static ALWAYS_INLINE bool DoInvoke(Thread* self, | ^~~~~~~~ art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/jvalue.h:25, from art/runtime/interpreter/interpreter_switch_impl.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_switch_impl.h:59:22: warning: 'always_inline' function might not be inlinable [-Wattributes] 59 | ALWAYS_INLINE JValue ExecuteSwitchImpl(Thread* self, const CodeItemDataAccessor& accessor, | ^~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 137 | static ALWAYS_INLINE bool DoInvoke(Thread* self, | ^~~~~~~~ art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/jni/jni_env_ext.cc:32: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22, from art/runtime/mirror/field-inl.h:23: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/jvalue.h:25: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_intrinsics.cc:402:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 402 | static ALWAYS_INLINE bool MterpReachabilityFence(ShadowFrame* shadow_frame ATTRIBUTE_UNUSED, | ^~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:400:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 400 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleWeakCompareAndSetRelease) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:399:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 399 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleWeakCompareAndSetPlain) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:398:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 398 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleWeakCompareAndSetAcquire) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:397:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 397 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleWeakCompareAndSet) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:396:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 396 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleSetVolatile) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:395:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 395 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleSetRelease) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:394:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 394 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleSetOpaque) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:393:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 393 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleSet) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:392:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 392 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetVolatile) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:391:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 391 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetOpaque) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:390:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 390 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndSetRelease) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:389:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 389 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndSetAcquire) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:388:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 388 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndSet) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:387:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 387 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndBitwiseXorRelease) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:386:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 386 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndBitwiseXorAcquire) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:385:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 385 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndBitwiseXor) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:384:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 384 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndBitwiseOrRelease) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:383:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 383 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndBitwiseOrAcquire) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:382:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 382 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndBitwiseOr) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:381:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 381 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndBitwiseAndRelease) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:380:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 380 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndBitwiseAndAcquire) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:379:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 379 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndBitwiseAnd) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:378:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 378 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndAddRelease) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:377:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 377 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndAddAcquire) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:376:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 376 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAndAdd) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:375:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 375 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGetAcquire) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:374:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 374 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleGet); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:373:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 373 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleCompareAndSet) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:372:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 372 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleCompareAndExchangeRelease) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:371:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 371 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleCompareAndExchangeAcquire) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:362:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 362 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:370:1: note: in expansion of macro 'VAR_HANDLE_ACCESSOR_INTRINSIC' 370 | VAR_HANDLE_ACCESSOR_INTRINSIC(VarHandleCompareAndExchange) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:346:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 346 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:359:1: note: in expansion of macro 'METHOD_HANDLE_INVOKE_INTRINSIC' 359 | METHOD_HANDLE_INVOKE_INTRINSIC(MethodHandleInvoke) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:346:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 346 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:358:1: note: in expansion of macro 'METHOD_HANDLE_INVOKE_INTRINSIC' 358 | METHOD_HANDLE_INVOKE_INTRINSIC(MethodHandleInvokeExact) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:343:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 343 | VARHANDLE_FENCE_INTRINSIC(MterpVarHandleStoreStoreFence, std::memory_order_release) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:327:27: note: in definition of macro 'VARHANDLE_FENCE_INTRINSIC' 327 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame ATTRIBUTE_UNUSED, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:342:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 342 | VARHANDLE_FENCE_INTRINSIC(MterpVarHandleLoadLoadFence, std::memory_order_acquire) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:327:27: note: in definition of macro 'VARHANDLE_FENCE_INTRINSIC' 327 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame ATTRIBUTE_UNUSED, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:341:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 341 | VARHANDLE_FENCE_INTRINSIC(MterpVarHandleReleaseFence, std::memory_order_release) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:327:27: note: in definition of macro 'VARHANDLE_FENCE_INTRINSIC' 327 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame ATTRIBUTE_UNUSED, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:340:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 340 | VARHANDLE_FENCE_INTRINSIC(MterpVarHandleAcquireFence, std::memory_order_acquire) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:327:27: note: in definition of macro 'VARHANDLE_FENCE_INTRINSIC' 327 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame ATTRIBUTE_UNUSED, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:339:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 339 | VARHANDLE_FENCE_INTRINSIC(MterpVarHandleFullFence, std::memory_order_seq_cst) | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:327:27: note: in definition of macro 'VARHANDLE_FENCE_INTRINSIC' 327 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame ATTRIBUTE_UNUSED, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:294:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 294 | static ALWAYS_INLINE bool MterpStringEquals(ShadowFrame* shadow_frame, | ^~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:266:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 266 | static ALWAYS_INLINE bool MterpStringGetCharsNoCheck(ShadowFrame* shadow_frame, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:247:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 247 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:263:1: note: in expansion of macro 'SIMPLE_STRING_INTRINSIC' 263 | SIMPLE_STRING_INTRINSIC(StringLength, SetI(str->GetLength())) | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:247:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 247 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:260:1: note: in expansion of macro 'SIMPLE_STRING_INTRINSIC' 260 | SIMPLE_STRING_INTRINSIC(StringIsEmpty, SetZ(str->GetLength() == 0)) | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:223:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 223 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:244:1: note: in expansion of macro 'STRING_INDEXOF_INTRINSIC' 244 | STRING_INDEXOF_INTRINSIC(StringIndexOfAfter, shadow_frame->GetVReg(arg[2])); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:223:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 223 | static ALWAYS_INLINE bool Mterp##name(ShadowFrame* shadow_frame, \ | ^~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:241:1: note: in expansion of macro 'STRING_INDEXOF_INTRINSIC' 241 | STRING_INDEXOF_INTRINSIC(StringIndexOf, 0); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:206:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 206 | static ALWAYS_INLINE bool MterpStringCompareTo(ShadowFrame* shadow_frame, | ^~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:182:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 182 | static ALWAYS_INLINE bool MterpStringCharAt(ShadowFrame* shadow_frame, | ^~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:179:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 179 | UNARY_INTRINSIC(MterpMathAtan, std::atan, GetVRegDouble, SetD); | ^~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:176:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 176 | UNARY_INTRINSIC(MterpMathAcos, std::acos, GetVRegDouble, SetD); | ^~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:173:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 173 | UNARY_INTRINSIC(MterpMathAsin, std::asin, GetVRegDouble, SetD); | ^~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:170:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 170 | UNARY_INTRINSIC(MterpMathTan, std::tan, GetVRegDouble, SetD); | ^~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:167:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 167 | UNARY_INTRINSIC(MterpMathCos, std::cos, GetVRegDouble, SetD); | ^~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:164:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 164 | UNARY_INTRINSIC(MterpMathSin, std::sin, GetVRegDouble, SetD); | ^~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:161:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 161 | UNARY_INTRINSIC(MterpMathFloor, std::floor, GetVRegDouble, SetD); | ^~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:158:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 158 | UNARY_INTRINSIC(MterpMathCeil, std::ceil, GetVRegDouble, SetD); | ^~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:155:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 155 | UNARY_INTRINSIC(MterpMathSqrt, std::sqrt, GetVRegDouble, SetD); | ^~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:152:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | UNARY_INTRINSIC(MterpMathAbsDouble, INT64_C(0x7fffffffffffffff)&, GetVRegLong, SetJ); | ^~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:149:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 149 | UNARY_INTRINSIC(MterpMathAbsFloat, 0x7fffffff&, GetVReg, SetI); | ^~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:146:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 146 | UNARY_INTRINSIC(MterpMathAbsLong, std::abs, GetVRegLong, SetJ); | ^~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:143:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 143 | UNARY_INTRINSIC(MterpMathAbsInt, std::abs, GetVReg, SetI); | ^~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:140:21: warning: 'always_inline' function might not be inlinable [-Wattributes] 140 | BINARY_JJ_INTRINSIC(MterpMathMaxLongLong, std::max, SetJ); | ^~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:28:27: note: in definition of macro 'BINARY_INTRINSIC' 28 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:140:1: note: in expansion of macro 'BINARY_JJ_INTRINSIC' 140 | BINARY_JJ_INTRINSIC(MterpMathMaxLongLong, std::max, SetJ); | ^~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:137:21: warning: 'always_inline' function might not be inlinable [-Wattributes] 137 | BINARY_II_INTRINSIC(MterpMathMaxIntInt, std::max, SetI); | ^~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:28:27: note: in definition of macro 'BINARY_INTRINSIC' 28 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:137:1: note: in expansion of macro 'BINARY_II_INTRINSIC' 137 | BINARY_II_INTRINSIC(MterpMathMaxIntInt, std::max, SetI); | ^~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:134:21: warning: 'always_inline' function might not be inlinable [-Wattributes] 134 | BINARY_JJ_INTRINSIC(MterpMathMinLongLong, std::min, SetJ); | ^~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:28:27: note: in definition of macro 'BINARY_INTRINSIC' 28 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:134:1: note: in expansion of macro 'BINARY_JJ_INTRINSIC' 134 | BINARY_JJ_INTRINSIC(MterpMathMinLongLong, std::min, SetJ); | ^~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:131:21: warning: 'always_inline' function might not be inlinable [-Wattributes] 131 | BINARY_II_INTRINSIC(MterpMathMinIntInt, std::min, SetI); | ^~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:28:27: note: in definition of macro 'BINARY_INTRINSIC' 28 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:131:1: note: in expansion of macro 'BINARY_II_INTRINSIC' 131 | BINARY_II_INTRINSIC(MterpMathMinIntInt, std::min, SetI); | ^~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:128:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 128 | UNARY_INTRINSIC(MterpShortReverseBytes, BSWAP, GetVRegShort, SetS); | ^~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:125:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 125 | UNARY_INTRINSIC(MterpLongSignum, Signum, GetVRegLong, SetI); | ^~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:122:21: warning: 'always_inline' function might not be inlinable [-Wattributes] 122 | BINARY_JI_INTRINSIC(MterpLongRotateLeft, (Rot), SetJ); | ^~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:28:27: note: in definition of macro 'BINARY_INTRINSIC' 28 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:122:1: note: in expansion of macro 'BINARY_JI_INTRINSIC' 122 | BINARY_JI_INTRINSIC(MterpLongRotateLeft, (Rot), SetJ); | ^~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:119:21: warning: 'always_inline' function might not be inlinable [-Wattributes] 119 | BINARY_JI_INTRINSIC(MterpLongRotateRight, (Rot), SetJ); | ^~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:28:27: note: in definition of macro 'BINARY_INTRINSIC' 28 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:119:1: note: in expansion of macro 'BINARY_JI_INTRINSIC' 119 | BINARY_JI_INTRINSIC(MterpLongRotateRight, (Rot), SetJ); | ^~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:116:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 116 | UNARY_INTRINSIC(MterpLongNumberOfTrailingZeros, JAVASTYLE_CTZ, GetVRegLong, SetJ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:113:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 113 | UNARY_INTRINSIC(MterpLongNumberOfLeadingZeros, JAVASTYLE_CLZ, GetVRegLong, SetJ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:110:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 110 | UNARY_INTRINSIC(MterpLongLowestOneBit, LowestOneBitValue, GetVRegLong, SetJ); | ^~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:107:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 107 | UNARY_INTRINSIC(MterpLongHighestOneBit, HighestOneBitValue, GetVRegLong, SetJ); | ^~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:104:21: warning: 'always_inline' function might not be inlinable [-Wattributes] 104 | BINARY_JJ_INTRINSIC(MterpLongCompare, Compare, SetI); | ^~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:28:27: note: in definition of macro 'BINARY_INTRINSIC' 28 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:104:1: note: in expansion of macro 'BINARY_JJ_INTRINSIC' 104 | BINARY_JJ_INTRINSIC(MterpLongCompare, Compare, SetI); | ^~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:101:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 101 | UNARY_INTRINSIC(MterpLongBitCount, POPCOUNT, GetVRegLong, SetI); | ^~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:98:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 98 | UNARY_INTRINSIC(MterpLongReverseBytes, BSWAP, GetVRegLong, SetJ); | ^~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:95:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | UNARY_INTRINSIC(MterpLongReverse, ReverseBits64, GetVRegLong, SetJ); | ^~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:92:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 92 | UNARY_INTRINSIC(MterpIntegerSignum, Signum, GetVReg, SetI); | ^~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:89:21: warning: 'always_inline' function might not be inlinable [-Wattributes] 89 | BINARY_II_INTRINSIC(MterpIntegerRotateLeft, (Rot), SetI); | ^~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:28:27: note: in definition of macro 'BINARY_INTRINSIC' 28 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:89:1: note: in expansion of macro 'BINARY_II_INTRINSIC' 89 | BINARY_II_INTRINSIC(MterpIntegerRotateLeft, (Rot), SetI); | ^~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:86:21: warning: 'always_inline' function might not be inlinable [-Wattributes] 86 | BINARY_II_INTRINSIC(MterpIntegerRotateRight, (Rot), SetI); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:28:27: note: in definition of macro 'BINARY_INTRINSIC' 28 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:86:1: note: in expansion of macro 'BINARY_II_INTRINSIC' 86 | BINARY_II_INTRINSIC(MterpIntegerRotateRight, (Rot), SetI); | ^~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:83:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 83 | UNARY_INTRINSIC(MterpIntegerNumberOfTrailingZeros, JAVASTYLE_CTZ, GetVReg, SetI); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:80:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 80 | UNARY_INTRINSIC(MterpIntegerNumberOfLeadingZeros, JAVASTYLE_CLZ, GetVReg, SetI); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:77:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 77 | UNARY_INTRINSIC(MterpIntegerLowestOneBit, LowestOneBitValue, GetVReg, SetI); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:74:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 74 | UNARY_INTRINSIC(MterpIntegerHighestOneBit, HighestOneBitValue, GetVReg, SetI); | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:71:21: warning: 'always_inline' function might not be inlinable [-Wattributes] 71 | BINARY_II_INTRINSIC(MterpIntegerCompare, Compare, SetI); | ^~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:28:27: note: in definition of macro 'BINARY_INTRINSIC' 28 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:71:1: note: in expansion of macro 'BINARY_II_INTRINSIC' 71 | BINARY_II_INTRINSIC(MterpIntegerCompare, Compare, SetI); | ^~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:68:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 68 | UNARY_INTRINSIC(MterpIntegerBitCount, POPCOUNT, GetVReg, SetI); | ^~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:65:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 65 | UNARY_INTRINSIC(MterpIntegerReverseBytes, BSWAP, GetVReg, SetI); | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/interpreter/interpreter_intrinsics.cc:62:17: warning: 'always_inline' function might not be inlinable [-Wattributes] 62 | UNARY_INTRINSIC(MterpIntegerReverse, ReverseBits32, GetVReg, SetI); | ^~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_intrinsics.cc:49:27: note: in definition of macro 'UNARY_INTRINSIC' 49 | static ALWAYS_INLINE bool name(ShadowFrame* shadow_frame, \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/art_field.h:22, from art/runtime/art_field-inl.h:20, from art/runtime/native/java_lang_reflect_Field.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_field.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_reflect_Method.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/jni/check_jni.cc: In static member function 'static _jobject* art::{anonymous}::CheckJNI::NewObjectA(JNIEnv*, jclass, jmethodID, const jvalue*)': art/runtime/jni/check_jni.cc:2185:56: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 2185 | result.L = baseEnv(env)->NewObjectA(env, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/interpreter/interpreter_common.h:42: art/libdexfile/dex/dex_instruction-inl.h: In member function 'uint32_t art::Instruction::GetVarArgs(uint32_t*, uint16_t) const': art/libdexfile/dex/dex_instruction-inl.h:537:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 537 | arg[4] = InstA(inst_data); | ~~~~~~~^~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:539:5: note: here 539 | case 4: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:540:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 540 | arg[3] = (regList >> 12) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:542:5: note: here 542 | case 3: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:543:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 543 | arg[2] = (regList >> 8) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:545:5: note: here 545 | case 2: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:546:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 546 | arg[1] = (regList >> 4) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:548:5: note: here 548 | case 1: | ^~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/art_method.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.cc:81: art/runtime/hidden_api.h: In function 'bool art::hiddenapi::ShouldDenyAccessToMember(T*, const std::function&, AccessMethod) [with T = art::ArtMethod]': art/runtime/hidden_api.h:468:1: warning: control reaches end of non-void function [-Wreturn-type] 468 | } | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/handle.h:27, from art/runtime/jit/jit.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/hidden_api.h: In function 'bool art::hiddenapi::ShouldDenyAccessToMember(T*, const std::function&, AccessMethod) [with T = art::ArtField]': art/runtime/hidden_api.h:468:1: warning: control reaches end of non-void function [-Wreturn-type] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker.cc: In member function 'art::ObjPtr art::ClassLinker::ResolveMethodHandle(art::Thread*, uint32_t, art::ArtMethod*)': art/runtime/class_linker.cc:9225:1: warning: control reaches end of non-void function [-Wreturn-type] 9225 | } | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::ResolveMethod(uint32_t, art::Handle, art::Handle, art::ArtMethod*, art::InvokeType)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/monitor.h:32: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/jni/check_jni.cc: In static member function 'static art::{anonymous}::JniValueType art::{anonymous}::CheckJNI::CallMethodA(const char*, JNIEnv*, jobject, jclass, jmethodID, const jvalue*, art::Primitive::Type, art::InvokeType)': art/runtime/jni/check_jni.cc:3088:73: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3088 | result.L = baseEnv(env)->CallObjectMethodA(env, obj, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3091:86: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3091 | result.L = baseEnv(env)->CallNonvirtualObjectMethodA(env, obj, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3094:77: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3094 | result.L = baseEnv(env)->CallStaticObjectMethodA(env, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3104:74: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3104 | result.Z = baseEnv(env)->CallBooleanMethodA(env, obj, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3107:87: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3107 | result.Z = baseEnv(env)->CallNonvirtualBooleanMethodA(env, obj, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3110:78: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3110 | result.Z = baseEnv(env)->CallStaticBooleanMethodA(env, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3120:71: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3120 | result.B = baseEnv(env)->CallByteMethodA(env, obj, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3123:84: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3123 | result.B = baseEnv(env)->CallNonvirtualByteMethodA(env, obj, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3126:75: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3126 | result.B = baseEnv(env)->CallStaticByteMethodA(env, c, mid, vargs); | ^~~~~ | | | const jvalue* host C++: libart <= art/runtime/native/java_lang_reflect_Parameter.cc art/runtime/jni/check_jni.cc:3136:71: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3136 | result.C = baseEnv(env)->CallCharMethodA(env, obj, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3139:84: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3139 | result.C = baseEnv(env)->CallNonvirtualCharMethodA(env, obj, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3142:75: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3142 | result.C = baseEnv(env)->CallStaticCharMethodA(env, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3152:72: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3152 | result.S = baseEnv(env)->CallShortMethodA(env, obj, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3155:85: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3155 | result.S = baseEnv(env)->CallNonvirtualShortMethodA(env, obj, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3158:76: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3158 | result.S = baseEnv(env)->CallStaticShortMethodA(env, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3168:70: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3168 | result.I = baseEnv(env)->CallIntMethodA(env, obj, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3171:83: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3171 | result.I = baseEnv(env)->CallNonvirtualIntMethodA(env, obj, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3174:74: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3174 | result.I = baseEnv(env)->CallStaticIntMethodA(env, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3184:71: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3184 | result.J = baseEnv(env)->CallLongMethodA(env, obj, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3187:84: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3187 | result.J = baseEnv(env)->CallNonvirtualLongMethodA(env, obj, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/jni/check_jni.cc:3190:75: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3190 | result.J = baseEnv(env)->CallStaticLongMethodA(env, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3200:72: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3200 | result.F = baseEnv(env)->CallFloatMethodA(env, obj, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3203:85: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3203 | result.F = baseEnv(env)->CallNonvirtualFloatMethodA(env, obj, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3206:76: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3206 | result.F = baseEnv(env)->CallStaticFloatMethodA(env, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3216:73: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3216 | result.D = baseEnv(env)->CallDoubleMethodA(env, obj, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3219:86: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3219 | result.D = baseEnv(env)->CallNonvirtualDoubleMethodA(env, obj, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3222:77: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3222 | result.D = baseEnv(env)->CallStaticDoubleMethodA(env, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3233:60: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3233 | baseEnv(env)->CallVoidMethodA(env, obj, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3236:73: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3236 | baseEnv(env)->CallNonvirtualVoidMethodA(env, obj, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/jni/check_jni.cc:3239:64: warning: invalid conversion from 'const jvalue*' to 'jvalue*' [-fpermissive] 3239 | baseEnv(env)->CallStaticVoidMethodA(env, c, mid, vargs); | ^~~~~ | | | const jvalue* art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/runtime.h:38, from art/runtime/mirror/array-inl.h:27: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/art_method.h:30, from art/runtime/art_method-inl.h:20, from art/runtime/native/java_lang_reflect_Method.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_lang_reflect_Proxy.cc art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/jni/check_jni.cc: At global scope: art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from '_jobject* (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to '_jobject* (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | _jobject* (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka _jobject* (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from '_jobject* (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to '_jobject* (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | _jobject* (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka _jobject* (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jboolean (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'unsigned char (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jboolean (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'unsigned char (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jboolean (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka unsigned char (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jbyte (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'signed char (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jbyte (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'signed char (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jbyte (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka signed char (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jchar (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'short unsigned int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jchar (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'short unsigned int (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jchar (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka short unsigned int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jshort (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'short int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jshort (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'short int (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jshort (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka short int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jint (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jint (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'int (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jint (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jlong (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'long long int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jlong (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'long long int (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jlong (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka long long int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jfloat (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'float (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jfloat (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'float (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jfloat (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka float (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jdouble (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'double (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jdouble (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'double (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jdouble (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka double (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'void (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'void (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'void (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'void (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | void (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka void (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from '_jobject* (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to '_jobject* (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | _jobject* (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka _jobject* (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jboolean (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'unsigned char (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jboolean (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'unsigned char (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jboolean (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka unsigned char (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jbyte (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'signed char (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jbyte (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'signed char (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jbyte (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka signed char (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jchar (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'short unsigned int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jchar (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'short unsigned int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jchar (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka short unsigned int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jshort (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'short int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jshort (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'short int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jshort (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka short int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jint (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jint (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jint (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jlong (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'long long int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jlong (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'long long int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jlong (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka long long int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jfloat (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'float (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jfloat (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'float (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jfloat (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka float (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jdouble (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'double (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jdouble (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'double (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jdouble (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka double (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'void (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'void (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'void (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'void (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | void (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka void (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from '_jobject* (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to '_jobject* (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | _jobject* (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka _jobject* (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jboolean (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'unsigned char (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jboolean (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'unsigned char (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jboolean (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka unsigned char (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jbyte (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'signed char (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jbyte (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'signed char (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jbyte (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka signed char (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jchar (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'short unsigned int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jchar (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'short unsigned int (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jchar (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka short unsigned int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jshort (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'short int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jshort (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'short int (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jshort (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka short int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jint (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jint (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'int (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jint (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jlong (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'long long int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jlong (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'long long int (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jlong (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka long long int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jfloat (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'float (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jfloat (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'float (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jfloat (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka float (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} In file included from art/runtime/mirror/class.h:31: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'jdouble (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'double (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jdouble (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'double (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | jdouble (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka double (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/check_jni.cc:4004:1: warning: invalid conversion from 'void (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'void (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'void (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'void (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 4004 | }; | ^ | | | void (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka void (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetDeclaringClass()': art/runtime/mirror/field-inl.h:33:56: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:33:32: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetType()': art/runtime/mirror/field-inl.h:41:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:41:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:30, from art/runtime/art_method-inl.h:20, from art/runtime/native/java_lang_reflect_Parameter.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/class_linker.h:29, from art/runtime/native/java_lang_reflect_Proxy.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.cc: In member function 'void art::mirror::DexCache::SetLocation(art::ObjPtr)': art/runtime/mirror/dex_cache.cc:236:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 236 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_), location); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.cc:236:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_), location); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/interpreter/interpreter_common.h:42: art/libdexfile/dex/dex_instruction-inl.h: In member function 'uint32_t art::Instruction::GetVarArgs(uint32_t*, uint16_t) const': art/libdexfile/dex/dex_instruction-inl.h:537:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 537 | arg[4] = InstA(inst_data); | ~~~~~~~^~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:539:5: note: here 539 | case 4: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:540:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 540 | arg[3] = (regList >> 12) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:542:5: note: here 542 | case 3: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:543:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 543 | arg[2] = (regList >> 8) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:545:5: note: here 545 | case 2: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:546:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 546 | arg[1] = (regList >> 4) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:548:5: note: here 548 | case 1: | ^~~~ art/runtime/mirror/stack_trace_element.h: In member function 'int32_t art::mirror::StackTraceElement::GetLineNumber()': art/runtime/mirror/stack_trace_element.h:39:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 39 | return GetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.h:39:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 39 | return GetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element-inl.h: In member function 'art::ObjPtr art::mirror::StackTraceElement::GetDeclaringClass()': art/runtime/mirror/stack_trace_element-inl.h:28:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 28 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, declaring_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element-inl.h:28:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 28 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, declaring_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element-inl.h: In member function 'art::ObjPtr art::mirror::StackTraceElement::GetMethodName()': art/runtime/mirror/stack_trace_element-inl.h:32:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 32 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, method_name_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element-inl.h:32:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 32 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, method_name_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element-inl.h: In member function 'art::ObjPtr art::mirror::StackTraceElement::GetFileName()': art/runtime/mirror/stack_trace_element-inl.h:36:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, file_name_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element-inl.h:36:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, file_name_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc: In member function 'void art::mirror::Throwable::SetDetailMessage(art::ObjPtr)': art/runtime/mirror/throwable.cc:43:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Throwable' is conditionally-supported [-Winvalid-offsetof] 43 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, detail_message_), new_detail_message); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:43:26: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 43 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, detail_message_), new_detail_message); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:45:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Throwable' is conditionally-supported [-Winvalid-offsetof] 45 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, detail_message_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:45:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, detail_message_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc: In member function 'void art::mirror::Throwable::SetCause(art::ObjPtr)': art/runtime/mirror/throwable.cc:54:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Throwable' is conditionally-supported [-Winvalid-offsetof] 54 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, cause_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:54:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, cause_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:57:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Throwable' is conditionally-supported [-Winvalid-offsetof] 57 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, cause_), cause); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:57:26: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 57 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, cause_), cause); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:59:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Throwable' is conditionally-supported [-Winvalid-offsetof] 59 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, cause_), cause); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:59:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, cause_), cause); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc: In member function 'void art::mirror::Throwable::SetStackState(art::ObjPtr)': art/runtime/mirror/throwable.cc:66:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::Throwable' is conditionally-supported [-Winvalid-offsetof] 66 | SetFieldObjectVolatile(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_), state); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:66:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | SetFieldObjectVolatile(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_), state); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:68:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Throwable' is conditionally-supported [-Winvalid-offsetof] 68 | SetFieldObjectVolatile(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_), state); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:68:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 68 | SetFieldObjectVolatile(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_), state); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/locks.h:23: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/field.cc:40:74: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/throwable.cc: In member function 'std::string art::mirror::Throwable::Dump()': art/runtime/mirror/throwable.cc:154:79: warning: 'offsetof' within non-standard-layout type 'art::mirror::Throwable' is conditionally-supported [-Winvalid-offsetof] 154 | ObjPtr cause = GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, cause_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:154:55: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 154 | ObjPtr cause = GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, cause_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24, from art/runtime/cha.h:27, from art/runtime/jit/jit_code_cache.cc:37: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Throwable::GetStackState()': art/runtime/mirror/throwable.cc:163:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Throwable' is conditionally-supported [-Winvalid-offsetof] 163 | return GetFieldObjectVolatile(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:163:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 163 | return GetFieldObjectVolatile(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc: In member function 'art::ObjPtr art::mirror::Throwable::GetStackTrace()': art/runtime/mirror/throwable.cc:167:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Throwable' is conditionally-supported [-Winvalid-offsetof] 167 | return GetFieldObjectVolatile(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:167:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 167 | return GetFieldObjectVolatile(OFFSET_OF_OBJECT_MEMBER(Throwable, backtrace_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc: In member function 'art::ObjPtr art::mirror::Throwable::GetDetailMessage()': art/runtime/mirror/throwable.cc:171:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Throwable' is conditionally-supported [-Winvalid-offsetof] 171 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, detail_message_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/throwable.cc:171:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 171 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Throwable, detail_message_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/scoped_thread_state_change-inl.h:27, from art/runtime/native/scoped_fast_native_object_access-inl.h:23, from art/runtime/native/java_lang_reflect_Proxy.cc:27: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/scoped_thread_state_change-inl.h:28: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/common_throws.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/runtime/art_field.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/libartbase/base/zip_archive.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/heap-inl.h:32: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30, from art/runtime/class_linker-inl.h:22, from art/runtime/class_root.h:20, from art/runtime/mirror/stack_trace_element.cc:21: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30, from art/runtime/class_linker-inl.h:22, from art/runtime/class_root.h:20, from art/runtime/mirror/string-alloc-inl.h:26: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/common_dex_operations.h:39, from art/runtime/interpreter/interpreter_common.h:39: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/dex_cache.h:24: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class.cc:36: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit_code_cache.cc:40: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/mirror/class-inl.h:22: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/object.cc:30: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit_code_cache.cc:43: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from libbase/include/android-base/stringprintf.h:21, from art/runtime/native/java_lang_reflect_Field.cc:19: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object.h:24: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/runtime/art_method.h:20: art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetDexFieldIndex()': art/runtime/mirror/field.h:42:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:42:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetAccessFlags()': art/runtime/mirror/field.h:48:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:48:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'int32_t art::mirror::Field::GetOffset()': art/runtime/mirror/field.h:68:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:68:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/interpreter/interpreter_common.h:42: art/libdexfile/dex/dex_instruction-inl.h: In member function 'uint32_t art::Instruction::GetVarArgs(uint32_t*, uint16_t) const': art/libdexfile/dex/dex_instruction-inl.h:537:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 537 | arg[4] = InstA(inst_data); | ~~~~~~~^~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:539:5: note: here 539 | case 4: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:540:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 540 | arg[3] = (regList >> 12) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:542:5: note: here 542 | case 3: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:543:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 543 | arg[2] = (regList >> 8) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:545:5: note: here 545 | case 2: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:546:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 546 | arg[1] = (regList >> 4) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:548:5: note: here 548 | case 1: | ^~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/monitor.cc:39: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/read_barrier.h:25, from art/runtime/interpreter/shadow_frame.h:27, from art/runtime/mirror/var_handle.h:21: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from /usr/include/c++/13.2.1/cstddef:50, from art/runtime/art_method.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_table.h:25, from art/runtime/class_table-inl.h:20, from art/runtime/mirror/class_loader-inl.h:22, from art/runtime/mirror/object-refvisitor-inl.h:23, from art/runtime/mirror/class.cc:42: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/oat_file.h:38, from art/runtime/class_loader_context.h:28: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from libbase/include/android-base/stringprintf.h:21, from art/runtime/native/java_lang_reflect_Parameter.cc:19: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22, from art/runtime/mirror/class_ext.cc:23: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_table.h:25, from art/runtime/class_table-inl.h:20, from art/runtime/mirror/class_loader-inl.h:22, from art/runtime/mirror/object-refvisitor-inl.h:23, from art/runtime/mirror/object.cc:35: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 137 | static ALWAYS_INLINE bool DoInvoke(Thread* self, | ^~~~~~~~ art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/jvalue.h:25, from art/runtime/interpreter/interpreter_switch_impl.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/interpreter_switch_impl.h:59:22: warning: 'always_inline' function might not be inlinable [-Wattributes] 59 | ALWAYS_INLINE JValue ExecuteSwitchImpl(Thread* self, const CodeItemDataAccessor& accessor, | ^~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 137 | static ALWAYS_INLINE bool DoInvoke(Thread* self, | ^~~~~~~~ art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/interpreter/interpreter_common.h:137:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/java_util_concurrent_atomic_AtomicLong.cc art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/list:62, from art/runtime/class_linker.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/utils.h:26: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/mirror/class-inl.h:22: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/native/java_util_concurrent_atomic_AtomicLong.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/libcore_util_CharsetUtils.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/class_accessor-inl.h:28, from art/runtime/native/dalvik_system_VMRuntime.cc:39: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc: In instantiation of 'void art::mirror::StackTraceElement::Init(art::ObjPtr, art::ObjPtr, art::ObjPtr, int32_t) [with bool kTransactionActive = true; int32_t = int]': art/runtime/mirror/stack_trace_element.cc:39:24: required from here art/runtime/mirror/stack_trace_element.cc:52:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 52 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, declaring_class_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:52:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, declaring_class_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:54:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 54 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, method_name_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:54:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, method_name_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:56:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 56 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, file_name_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:56:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, file_name_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:58:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 58 | SetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:58:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | SetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc: In instantiation of 'void art::mirror::StackTraceElement::Init(art::ObjPtr, art::ObjPtr, art::ObjPtr, int32_t) [with bool kTransactionActive = false; int32_t = int]': art/runtime/mirror/stack_trace_element.cc:41:25: required from here art/runtime/mirror/stack_trace_element.cc:52:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 52 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, declaring_class_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:52:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, declaring_class_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:54:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 54 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, method_name_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:54:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, method_name_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:56:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 56 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, file_name_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:56:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, file_name_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:58:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 58 | SetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.cc:58:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | SetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/native/dalvik_system_VMRuntime.cc:43: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30, from art/runtime/class_linker-inl.h:22, from art/runtime/class_root.h:20, from art/runtime/mirror/string-alloc-inl.h:26, from art/runtime/native/java_lang_StringFactory.cc:23: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class.cc: In member function 'art::ObjPtr art::mirror::Class::EnsureExtDataPresent(art::Thread*)': art/runtime/mirror/class.cc:116:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 116 | MemberOffset ext_offset(OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.cc:116:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 116 | MemberOffset ext_offset(OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/atomic.h:27, from art/runtime/native/java_util_concurrent_atomic_AtomicLong.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/list:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/libdexfile/dex/type_reference.h:25, from art/libprofile/./profile/profile_compilation_info.h:35, from art/runtime/jit/jit_code_cache.cc:54: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.cc: In member function 'void art::mirror::Class::SetDexCache(art::ObjPtr)': art/runtime/mirror/class.cc:239:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 239 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_), new_dex_cache); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.cc:239:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_), new_dex_cache); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/intern_table.h:24, from art/runtime/native/dalvik_system_VMRuntime.cc:48: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.cc: In member function 'void art::mirror::Class::SetClassSize(uint32_t)': art/runtime/mirror/class.cc:248:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, class_size_), new_class_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.cc:248:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, class_size_), new_class_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22, from art/runtime/jni/jni_internal.cc:54: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.cc: In member function 'void art::mirror::Class::SetReferenceInstanceOffsets(uint32_t)': art/runtime/mirror/class.cc:388:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 388 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.cc:388:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 388 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/interpreter/interpreter_common.h:42: art/libdexfile/dex/dex_instruction-inl.h: In member function 'uint32_t art::Instruction::GetVarArgs(uint32_t*, uint16_t) const': art/libdexfile/dex/dex_instruction-inl.h:537:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 537 | arg[4] = InstA(inst_data); | ~~~~~~~^~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:539:5: note: here 539 | case 4: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:540:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 540 | arg[3] = (regList >> 12) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:542:5: note: here 542 | case 3: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:543:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 543 | arg[2] = (regList >> 8) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:545:5: note: here 545 | case 2: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:546:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 546 | arg[1] = (regList >> 4) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:548:5: note: here 548 | case 1: | ^~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/handle_scope.h:25, from art/runtime/handle_scope-inl.h:20, from art/runtime/native/libcore_util_CharsetUtils.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:26: In member function 'bool art::CodeItemDebugInfoAccessor::DecodeDebugLocalInfo(bool, uint32_t, const NewLocalVisitor&) const [with NewLocalVisitor = art::debug::ElfCompilationUnitWriter::Write(const art::debug::ElfCompilationUnit&)::]', inlined from 'void art::debug::ElfCompilationUnitWriter::Write(const art::debug::ElfCompilationUnit&) [with ElfTypes = art::ElfTypes64]' at art/compiler/debug/elf_debug_info_writer.h:245:40: art/libdexfile/dex/code_item_accessors-inl.h:206:41: warning: 'accessor.art::CodeItemDebugInfoAccessor::.art::CodeItemDataAccessor::registers_size_' may be used uninitialized [-Wmaybe-uninitialized] 206 | return dex_file_->DecodeDebugLocalInfo(RegistersSize(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 207 | InsSize(), | ~~~~~~~~~~ 208 | InsnsSizeInCodeUnits(), | ~~~~~~~~~~~~~~~~~~~~~~~ 209 | DebugInfoOffset(), | ~~~~~~~~~~~~~~~~~~ 210 | is_static, | ~~~~~~~~~~ 211 | method_idx, | ~~~~~~~~~~~ 212 | new_local); | ~~~~~~~~~~ art/compiler/debug/elf_debug_info_writer.h: In member function 'void art::debug::ElfCompilationUnitWriter::Write(const art::debug::ElfCompilationUnit&) [with ElfTypes = art::ElfTypes64]': art/compiler/debug/elf_debug_info_writer.h:150:33: note: 'accessor.art::CodeItemDebugInfoAccessor::.art::CodeItemDataAccessor::registers_size_' was declared here 150 | CodeItemDebugInfoAccessor accessor(*dex, mi->code_item, mi->dex_method_index); | ^~~~~~~~ In member function 'bool art::CodeItemDebugInfoAccessor::DecodeDebugLocalInfo(bool, uint32_t, const NewLocalVisitor&) const [with NewLocalVisitor = art::debug::ElfCompilationUnitWriter::Write(const art::debug::ElfCompilationUnit&)::]', inlined from 'void art::debug::ElfCompilationUnitWriter::Write(const art::debug::ElfCompilationUnit&) [with ElfTypes = art::ElfTypes64]' at art/compiler/debug/elf_debug_info_writer.h:245:40: art/libdexfile/dex/code_item_accessors-inl.h:206:41: warning: 'accessor.art::CodeItemDebugInfoAccessor::.art::CodeItemDataAccessor::ins_size_' may be used uninitialized [-Wmaybe-uninitialized] 206 | return dex_file_->DecodeDebugLocalInfo(RegistersSize(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 207 | InsSize(), | ~~~~~~~~~~ 208 | InsnsSizeInCodeUnits(), | ~~~~~~~~~~~~~~~~~~~~~~~ 209 | DebugInfoOffset(), | ~~~~~~~~~~~~~~~~~~ 210 | is_static, | ~~~~~~~~~~ 211 | method_idx, | ~~~~~~~~~~~ 212 | new_local); | ~~~~~~~~~~ art/compiler/debug/elf_debug_info_writer.h: In member function 'void art::debug::ElfCompilationUnitWriter::Write(const art::debug::ElfCompilationUnit&) [with ElfTypes = art::ElfTypes64]': art/compiler/debug/elf_debug_info_writer.h:150:33: note: 'accessor.art::CodeItemDebugInfoAccessor::.art::CodeItemDataAccessor::ins_size_' was declared here 150 | CodeItemDebugInfoAccessor accessor(*dex, mi->code_item, mi->dex_method_index); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from libbase/include/android-base/stringprintf.h:21, from art/runtime/native/java_lang_reflect_Executable.cc:19: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/handle_scope-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from art/runtime/gc/heap.h:21: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/native/dalvik_system_ZygoteHooks.cc:32: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/stack_trace_element.h: In member function 'int32_t art::mirror::StackTraceElement::GetLineNumber()': art/runtime/mirror/stack_trace_element.h:39:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 39 | return GetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.h:39:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 39 | return GetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.cc: In member function 'void art::mirror::ClassExt::SetObsoleteArrays(art::ObjPtr, art::ObjPtr >)': art/runtime/mirror/class_ext.cc:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | auto obsolete_dex_cache_off = OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.cc:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | auto obsolete_dex_cache_off = OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.cc:46:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 46 | auto obsolete_methods_off = OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.cc:46:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 46 | auto obsolete_methods_off = OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/native/dalvik_system_VMRuntime.cc:51: art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/jni/check_jni.cc: In static member function 'static const uint8_t* art::{anonymous}::ScopedCheck::CheckUtfBytes(const char*, const char**)': art/runtime/jni/check_jni.cc:1429:9: warning: this statement may fall through [-Wimplicit-fallthrough=] 1429 | if ((*utf8 & 0x08) == 0) { | ^~ art/runtime/jni/check_jni.cc:1444:7: note: here 1444 | case 0x0e: | ^~~~ art/runtime/jni/check_jni.cc:1447:9: warning: this statement may fall through [-Wimplicit-fallthrough=] 1447 | if ((*utf8 & 0xc0) != 0x80) { | ^~ art/runtime/jni/check_jni.cc:1454:7: note: here 1454 | case 0x0c: | ^~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmServer.cc art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class_ext.cc: In member function 'void art::mirror::ClassExt::SetVerifyError(art::ObjPtr)': art/runtime/mirror/class_ext.cc:111:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 111 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_), err); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.cc:111:26: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 111 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_), err); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.cc:113:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 113 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_), err); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.cc:113:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_), err); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.cc: In member function 'void art::mirror::ClassExt::SetOriginalDexFile(art::ObjPtr)': art/runtime/mirror/class_ext.cc:119:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 119 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_), bytes); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.cc:119:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 119 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_), bytes); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.cc: In member function 'void art::mirror::ClassExt::SetPreRedefineClassDefIndex(uint16_t)': art/runtime/mirror/class_ext.cc:124:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 124 | SetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.cc:124:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 124 | SetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.cc: In member function 'void art::mirror::ClassExt::SetPreRedefineDexFile(const art::DexFile*)': art/runtime/mirror/class_ext.cc:130:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 130 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.cc:130:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 130 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/runtime.h:38, from art/runtime/mirror/array-inl.h:27: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/string-inl.h:23, from art/runtime/native/libcore_util_CharsetUtils.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/method_verifier.h:32, from art/runtime/monitor.cc:42: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from art/runtime/gc/heap.h:21: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ host C++: libart <= art/runtime/native/sun_misc_Unsafe.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit_code_cache.cc:56: art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/non_debuggable_classes.cc art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/class_linker.h:29, from art/runtime/debugger.h:31, from art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmServer.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class_ext.cc:59:75: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30, from art/runtime/class_linker-inl.h:22, from art/runtime/class_root.h:20, from art/runtime/mirror/string-alloc-inl.h:26, from art/runtime/native/java_lang_String.cc:26: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class.cc:98:39: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassSize() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.cc:243:53: required from here art/runtime/mirror/class.h:486:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 486 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:486:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 486 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetName() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class.cc:256:40: required from here art/runtime/mirror/class-inl.h:751:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 751 | OFFSET_OF_OBJECT_MEMBER(Class, name_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:751:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 751 | OFFSET_OF_OBJECT_MEMBER(Class, name_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/libartbase/base/file_utils.h:26, from art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.cc:312:34: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-refvisitor-inl.h:82:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor; JavaLangRefVisitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/object.cc:122:25: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/debugger.h:39: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetType(art::ObjPtr) [with bool kTransactionActive = true]': art/runtime/mirror/field-inl.h:89:35: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = true]' art/runtime/interpreter/unstarted_runtime.cc:368:72: required from here art/runtime/mirror/field-inl.h:104:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:104:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetDeclaringClass(art::ObjPtr) [with bool kTransactionActive = true]': art/runtime/mirror/field-inl.h:90:45: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = true]' art/runtime/interpreter/unstarted_runtime.cc:368:72: required from here art/runtime/mirror/field-inl.h:99:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:99:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetName() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class.cc:1014:83: required from here art/runtime/mirror/class-inl.h:751:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 751 | OFFSET_OF_OBJECT_MEMBER(Class, name_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:751:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 751 | OFFSET_OF_OBJECT_MEMBER(Class, name_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetAccessFlags(uint32_t) [with bool kTransactionActive = true; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:91:42: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = true]' art/runtime/interpreter/unstarted_runtime.cc:368:72: required from here art/runtime/mirror/field.h:98:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:98:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetDexFieldIndex(uint32_t) [with bool kTransactionActive = true; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:92:44: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = true]' art/runtime/interpreter/unstarted_runtime.cc:368:72: required from here art/runtime/mirror/field.h:103:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:103:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetOffset(uint32_t) [with bool kTransactionActive = true; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:93:37: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = true]' art/runtime/interpreter/unstarted_runtime.cc:368:72: required from here art/runtime/mirror/field.h:108:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:108:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetType(art::ObjPtr) [with bool kTransactionActive = false]': art/runtime/mirror/field-inl.h:89:35: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = false]' art/runtime/interpreter/unstarted_runtime.cc:376:73: required from here art/runtime/mirror/field-inl.h:104:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:104:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetDeclaringClass(art::ObjPtr) [with bool kTransactionActive = false]': art/runtime/mirror/field-inl.h:90:45: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = false]' art/runtime/interpreter/unstarted_runtime.cc:376:73: required from here art/runtime/mirror/field-inl.h:99:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:99:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetAccessFlags(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:91:42: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = false]' art/runtime/interpreter/unstarted_runtime.cc:376:73: required from here art/runtime/mirror/field.h:98:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:98:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetDexFieldIndex(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:92:44: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = false]' art/runtime/interpreter/unstarted_runtime.cc:376:73: required from here art/runtime/mirror/field.h:103:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:103:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetOffset(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:93:37: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = false]' art/runtime/interpreter/unstarted_runtime.cc:376:73: required from here art/runtime/mirror/field.h:108:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:108:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/indirect_reference_table.h:32, from art/runtime/jni/jni_env_ext.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29, from art/runtime/native/scoped_fast_native_object_access-inl.h:23, from art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmServer.cc:27: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/base/quasi_atomic.h:101, from art/runtime/native/sun_misc_Unsafe.cc:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/common_throws.h:22, from art/runtime/native/sun_misc_Unsafe.cc:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetDexFieldIndex()': art/runtime/mirror/field.h:42:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:42:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetAccessFlags()': art/runtime/mirror/field.h:48:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:48:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'int32_t art::mirror::Field::GetOffset()': art/runtime/mirror/field.h:68:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:68:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetDeclaringClass()': art/runtime/mirror/field-inl.h:33:56: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:33:32: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetType()': art/runtime/mirror/field-inl.h:41:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:41:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/non_debuggable_classes.h:22, from art/runtime/non_debuggable_classes.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/debugger.h:39, from art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'uint32_t art::mirror::Class::GetReferenceInstanceOffsets() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:913:55: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor; JavaLangRefVisitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/object.cc:122:25: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/native/dalvik_system_ZygoteHooks.cc:42: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class_loader-inl.h:41:64: required from 'void art::mirror::ClassLoader::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitClasses = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/object-refvisitor-inl.h:70:58: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor; JavaLangRefVisitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/object.cc:122:25: required from here art/runtime/mirror/class_loader.h:48:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/runtime/native/sun_misc_Unsafe.cc:32: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22, from art/runtime/mirror/method.cc:21: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/runtime.h:38, from art/runtime/mirror/array-inl.h:27: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/runtime/non_debuggable_classes.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:888:54: required from 'void art::mirror::Object::VisitFieldsReferences(uint32_t, const Visitor&) [with bool kIsStatic = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor; uint32_t = unsigned int]' art/runtime/mirror/object-inl.h:912:65: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor; JavaLangRefVisitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/object.cc:122:25: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor; JavaLangRefVisitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/object.cc:122:25: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/utils.h:26: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor; JavaLangRefVisitor = art::mirror::CopyReferenceFieldsWithReadBarrierVisitor]' art/runtime/mirror/object.cc:122:25: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:20: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/string-alloc-inl.h:27: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-refvisitor-inl.h:82:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::ReadBarrierOnNativeRootsVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/mirror/class.cc:1195:45: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ In file included from art/runtime/oat.h:23, from art/runtime/oat.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/interpreter/interpreter_common.h:43: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/monitor_objects_stack_visitor.cc:19: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In member function 'bool art::CodeItemDebugInfoAccessor::DecodeDebugLocalInfo(bool, uint32_t, const NewLocalVisitor&) const [with NewLocalVisitor = art::debug::ElfCompilationUnitWriter::Write(const art::debug::ElfCompilationUnit&)::]', inlined from 'void art::debug::ElfCompilationUnitWriter::Write(const art::debug::ElfCompilationUnit&) [with ElfTypes = art::ElfTypes32]' at art/compiler/debug/elf_debug_info_writer.h:245:40: art/libdexfile/dex/code_item_accessors-inl.h:206:41: warning: 'accessor.art::CodeItemDebugInfoAccessor::.art::CodeItemDataAccessor::registers_size_' may be used uninitialized [-Wmaybe-uninitialized] 206 | return dex_file_->DecodeDebugLocalInfo(RegistersSize(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 207 | InsSize(), | ~~~~~~~~~~ 208 | InsnsSizeInCodeUnits(), | ~~~~~~~~~~~~~~~~~~~~~~~ 209 | DebugInfoOffset(), | ~~~~~~~~~~~~~~~~~~ 210 | is_static, | ~~~~~~~~~~ 211 | method_idx, | ~~~~~~~~~~~ 212 | new_local); | ~~~~~~~~~~ art/compiler/debug/elf_debug_info_writer.h: In member function 'void art::debug::ElfCompilationUnitWriter::Write(const art::debug::ElfCompilationUnit&) [with ElfTypes = art::ElfTypes32]': art/compiler/debug/elf_debug_info_writer.h:150:33: note: 'accessor.art::CodeItemDebugInfoAccessor::.art::CodeItemDataAccessor::registers_size_' was declared here 150 | CodeItemDebugInfoAccessor accessor(*dex, mi->code_item, mi->dex_method_index); | ^~~~~~~~ In member function 'bool art::CodeItemDebugInfoAccessor::DecodeDebugLocalInfo(bool, uint32_t, const NewLocalVisitor&) const [with NewLocalVisitor = art::debug::ElfCompilationUnitWriter::Write(const art::debug::ElfCompilationUnit&)::]', inlined from 'void art::debug::ElfCompilationUnitWriter::Write(const art::debug::ElfCompilationUnit&) [with ElfTypes = art::ElfTypes32]' at art/compiler/debug/elf_debug_info_writer.h:245:40: art/libdexfile/dex/code_item_accessors-inl.h:206:41: warning: 'accessor.art::CodeItemDebugInfoAccessor::.art::CodeItemDataAccessor::ins_size_' may be used uninitialized [-Wmaybe-uninitialized] 206 | return dex_file_->DecodeDebugLocalInfo(RegistersSize(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 207 | InsSize(), | ~~~~~~~~~~ 208 | InsnsSizeInCodeUnits(), | ~~~~~~~~~~~~~~~~~~~~~~~ 209 | DebugInfoOffset(), | ~~~~~~~~~~~~~~~~~~ 210 | is_static, | ~~~~~~~~~~ 211 | method_idx, | ~~~~~~~~~~~ 212 | new_local); | ~~~~~~~~~~ art/compiler/debug/elf_debug_info_writer.h: In member function 'void art::debug::ElfCompilationUnitWriter::Write(const art::debug::ElfCompilationUnit&) [with ElfTypes = art::ElfTypes32]': art/compiler/debug/elf_debug_info_writer.h:150:33: note: 'accessor.art::CodeItemDebugInfoAccessor::.art::CodeItemDataAccessor::ins_size_' was declared here 150 | CodeItemDebugInfoAccessor accessor(*dex, mi->code_item, mi->dex_method_index); | ^~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:31: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:519:54: required from 'static void art::SubtypeCheck::WriteStatusImpl(ClassPtr, art::ClassStatus) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:369:20: required from 'static void art::SubtypeCheck::WriteStatus(ClassPtr, art::ClassStatus) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class.cc:188:53: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'uint32_t art::mirror::Class::GetReferenceInstanceOffsets() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:913:55: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::ReadBarrierOnNativeRootsVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::ReadBarrierOnNativeRootsVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/mirror/class.cc:1195:45: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class_loader-inl.h:41:64: required from 'void art::mirror::ClassLoader::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitClasses = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::ReadBarrierOnNativeRootsVisitor]' art/runtime/mirror/object-refvisitor-inl.h:70:58: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::ReadBarrierOnNativeRootsVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/mirror/class.cc:1195:45: required from here art/runtime/mirror/class_loader.h:48:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/scoped_thread_state_change-inl.h:28: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/method_handles_lookup.h:23: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/common_throws.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:888:54: required from 'void art::mirror::Object::VisitFieldsReferences(uint32_t, const Visitor&) [with bool kIsStatic = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::ReadBarrierOnNativeRootsVisitor; uint32_t = unsigned int]' art/runtime/mirror/object-inl.h:912:65: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::ReadBarrierOnNativeRootsVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::ReadBarrierOnNativeRootsVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/mirror/class.cc:1195:45: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/interpreter/interpreter.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/interpreter/unstarted_runtime.cc:195:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 195 | static ALWAYS_INLINE bool ShouldDenyAccessToMember(T* member, ShadowFrame* frame) | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/unstarted_runtime.cc:195:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::mirror::ReadBarrierOnNativeRootsVisitor]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::mirror::ReadBarrierOnNativeRootsVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::ReadBarrierOnNativeRootsVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::mirror::ReadBarrierOnNativeRootsVisitor; JavaLangRefVisitor = art::VoidFunctor]' art/runtime/mirror/class.cc:1195:45: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/oat_file.cc art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.cc:1272:13: warning: 'always_inline' function might not be inlinable [-Wattributes] 1272 | static bool IsMethodPreferredOver(ArtMethod* orig_method, | ^~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/string-alloc-inl.h:27: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/oat_file_assistant.cc In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/interpreter/unstarted_runtime.cc:44: art/runtime/hidden_api.h: In function 'bool art::hiddenapi::ShouldDenyAccessToMember(T*, const std::function&, AccessMethod) [with T = art::ArtMethod]': art/runtime/hidden_api.h:468:1: warning: control reaches end of non-void function [-Wreturn-type] 468 | } | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/runtime_options.h:34: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/hidden_api.h: In function 'bool art::hiddenapi::ShouldDenyAccessToMember(T*, const std::function&, AccessMethod) [with T = art::ArtField]': art/runtime/hidden_api.h:468:1: warning: control reaches end of non-void function [-Wreturn-type] art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame-inl.h: In member function 'art::ObjPtr art::mirror::EmulatedStackFrame::GetType()': art/runtime/mirror/emulated_stack_frame-inl.h:30:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 30 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(EmulatedStackFrame, type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame-inl.h:30:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 30 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(EmulatedStackFrame, type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/string-alloc-inl.h:27: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame-inl.h: In member function 'art::ObjPtr > art::mirror::EmulatedStackFrame::GetReferences()': art/runtime/mirror/emulated_stack_frame-inl.h:39:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 39 | OFFSET_OF_OBJECT_MEMBER(EmulatedStackFrame, references_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame-inl.h:39:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 39 | OFFSET_OF_OBJECT_MEMBER(EmulatedStackFrame, references_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame-inl.h: In member function 'art::ObjPtr > art::mirror::EmulatedStackFrame::GetStackFrame()': art/runtime/mirror/emulated_stack_frame-inl.h:44:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 44 | OFFSET_OF_OBJECT_MEMBER(EmulatedStackFrame, stack_frame_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame-inl.h:44:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 44 | OFFSET_OF_OBJECT_MEMBER(EmulatedStackFrame, stack_frame_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/runtime/art_method.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h: In member function 'art::ObjPtr > art::mirror::MethodType::GetPTypes()': art/runtime/mirror/method_type-inl.h:28:69: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 28 | return GetFieldObject>(OFFSET_OF_OBJECT_MEMBER(MethodType, p_types_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h:28:45: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 28 | return GetFieldObject>(OFFSET_OF_OBJECT_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h: In member function 'art::ObjPtr art::mirror::MethodType::GetRType()': art/runtime/mirror/method_type-inl.h:36:56: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodType, r_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h:36:32: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/native/java_lang_String.cc:24: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.cc:38: art/runtime/hidden_api.h: In function 'bool art::hiddenapi::ShouldDenyAccessToMember(T*, const std::function&, AccessMethod) [with T = art::ArtMethod]': art/runtime/hidden_api.h:468:1: warning: control reaches end of non-void function [-Wreturn-type] 468 | } | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In static member function 'static void art::mirror::DexCache::SetNativePairPtrSize(std::atomic >*, size_t, art::mirror::NativeDexCachePair, art::PointerSize) [with T = art::ArtMethod]', inlined from 'void art::gc::space::ImageSpace::PatchObjectVisitor::FixupDexCacheArrayEntry(std::atomic >*, uint32_t) [with T = art::ArtMethod; art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor; NativeVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor]' at art/runtime/gc/space/image_space.cc:618:45, inlined from 'void art::gc::space::ImageSpace::PatchObjectVisitor::FixupDexCacheArray(art::ObjPtr, art::MemberOffset, uint32_t) [with EntryType = std::atomic >; art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor; NativeVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor]' at art/runtime/gc/space/image_space.cc:643:32, inlined from 'void art::gc::space::ImageSpace::PatchObjectVisitor::VisitDexCacheArrays(art::ObjPtr) [with art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor; NativeVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor]' at art/runtime/gc/space/image_space.cc:534:51: art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 329 | AtomicStoreRelease16B(&array[idx], v); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 In static member function 'static void art::mirror::DexCache::SetNativePairPtrSize(std::atomic >*, size_t, art::mirror::NativeDexCachePair, art::PointerSize) [with T = art::ArtField]', inlined from 'void art::gc::space::ImageSpace::PatchObjectVisitor::FixupDexCacheArrayEntry(std::atomic >*, uint32_t) [with T = art::ArtField; art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor; NativeVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor]' at art/runtime/gc/space/image_space.cc:618:45, inlined from 'void art::gc::space::ImageSpace::PatchObjectVisitor::FixupDexCacheArray(art::ObjPtr, art::MemberOffset, uint32_t) [with EntryType = std::atomic >; art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor; NativeVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor]' at art/runtime/gc/space/image_space.cc:643:32, inlined from 'void art::gc::space::ImageSpace::PatchObjectVisitor::VisitDexCacheArrays(art::ObjPtr) [with art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor; NativeVisitor = art::gc::space::ImageSpace::BootImageLoader::RelocateVisitor]' at art/runtime/gc/space/image_space.cc:537:50: art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 329 | AtomicStoreRelease16B(&array[idx], v); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 In file included from /usr/include/c++/13.2.1/cstddef:50, from art/libdexfile/dex/dex_file_types.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/mirror/emulated_stack_frame.cc:19: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/emulated_stack_frame.h:23: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/oat_file.h:26, from art/runtime/oat_file.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/string.h:22, from art/runtime/mirror/string-inl.h:19: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/deque:62, from /usr/include/c++/13.2.1/stack:62, from art/runtime/handle_scope.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22, from art/runtime/mirror/method_type.cc:19: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/oat_file_manager.cc art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmServer.cc:19: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.cc: In static member function 'static void art::mirror::DexCache::AtomicStoreRelease16B(std::atomic >*, ConversionPair64)': art/runtime/mirror/dex_cache.cc:249:6: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 249 | void DexCache::AtomicStoreRelease16B(std::atomic* target, | ^~~~~~~~ In file included from art/runtime/scoped_thread_state_change-inl.h:28: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/native/dalvik_system_VMStack.cc:30: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/oat_file_assistant.h:25, from art/runtime/oat_file_assistant.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/scoped_flock.h:25, from art/runtime/oat_file_assistant.h:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/deque:76: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libelffile/elf/elf_utils.h:22, from art/runtime/oat_file.cc:59: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/common_dex_operations.h:39, from art/runtime/interpreter/interpreter_common.h:39: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/handle_scope.h:22: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/oat_file.cc:62: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Zygote' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Help' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ShowVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath_a' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathLocations' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Image' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CheckJni' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniOptsForceCopy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpProvider' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.def:48:43: warning: declaration of 'art::RuntimeArgumentMap::Key art::RuntimeArgumentMap::JdwpProvider' changes meaning of 'JdwpProvider' [-Wchanges-meaning] 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:109: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ art/runtime/runtime_options.def:48:22: note: used here to mean 'enum class art::JdwpProvider' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:63: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ In file included from art/runtime/runtime.h:40, from art/runtime/mirror/array-inl.h:27: art/runtime/jdwp_provider.h:26:12: note: declared here 26 | enum class JdwpProvider { | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryMaximumSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryInitialSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapGrowthLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMinFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMaxFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NonMovingSpaceCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapTargetUtilization' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForegroundHeapGrowthMultiplier' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ParallelGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ConcGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FinalizerTimeoutMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MaxSpinsBeforeThinLockInflation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongPauseLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongGCLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ThreadSuspendTimeout' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpGCPerformanceOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoBeforeGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoAfterGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpJITInfoOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'IgnoreMaxFootprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LowMemoryMode' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseTLAB' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'EnableHSpaceCompactForOOM' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseJitCompilation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpNativeStackOnSigQuit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MadviseRandomAccess' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCompileThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITWarmupThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITOsrThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPriorityThreadWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITInvokeTransitionWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPoolThreadPthreadPriority' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheInitialCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheMaxCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HSpaceCompactForOOMMinIntervalsMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'PropertiesList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Relocate' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageDex2Oat' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Interpret' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31, from art/runtime/debugger.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GcOption' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc:19: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectSpace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BackgroundGc' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DisableExplicitGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoSigChain' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForceNativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verbose' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackDumpLockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFile' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFileSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceStreaming' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileClock' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileSaverOpts' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Compiler' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageCompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verify' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'TargetSdkVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HiddenApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CorePlatformApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ZygoteMaxFailedBoots' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoDexFileFallback' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CpuAbiList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Fingerprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Experimental' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentLib' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Plugins' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathDexList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageInstructionSet' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerCallbacksPtr' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookIsSensitiveThread' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/runtime/gc/accounting/space_bitmap.h:24: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_insert_aux(iterator, _Arg&&) [with _Arg = art::InternTable::Table::InternalTable; _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:413:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 413 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookVfprintf' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookExit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookAbort' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'SlowDebug' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GlobalRefAllocStackTraceLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseStderrLogger' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'OnlyUseSystemOatFiles' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'VerifierLoggingThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageSpaceLoadingOrder' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FastClassNotFoundException' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/jni/jni_internal.cc: In constructor 'art::{anonymous}::ScopedVAArgs::ScopedVAArgs(va_list*)': art/runtime/jni/jni_internal.cc:81:34: warning: declaration of 'args' shadows a member of 'art::{anonymous}::ScopedVAArgs' [-Wshadow] 81 | explicit ScopedVAArgs(va_list* args): args(args) {} | ~~~~~~~~~^~~~ art/runtime/jni/jni_internal.cc:87:12: note: shadowed declaration is here 87 | va_list* args; | ^~~~ art/runtime/jni/jni_internal.cc: In constructor 'art::{anonymous}::ScopedVAArgs::ScopedVAArgs(va_list*)': art/runtime/jni/jni_internal.cc:81:34: warning: declaration of 'args' shadows a member of 'art::{anonymous}::ScopedVAArgs' [-Wshadow] 81 | explicit ScopedVAArgs(va_list* args): args(args) {} | ~~~~~~~~~^~~~ art/runtime/jni/jni_internal.cc:87:12: note: shadowed declaration is here 87 | va_list* args; | ^~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/jni/jni_internal.cc: In constructor 'art::{anonymous}::ScopedVAArgs::ScopedVAArgs(va_list*)': art/runtime/jni/jni_internal.cc:81:34: warning: declaration of 'args' shadows a member of 'art::{anonymous}::ScopedVAArgs' [-Wshadow] 81 | explicit ScopedVAArgs(va_list* args): args(args) {} | ~~~~~~~~~^~~~ art/runtime/jni/jni_internal.cc:87:12: note: shadowed declaration is here 87 | va_list* args; | ^~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26, from art/runtime/oat_file.cc:65: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {art::InternTable::Table::InternalTable}; _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/non_debuggable_classes.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/oat_file_assistant.cc:40: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29, from art/runtime/oat_file_assistant.cc:45: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/jit/jit_code_cache.cc:2003:29: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/quasi_atomic.h:23: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/intern_table.h:24, from art/runtime/mirror/string.cc:28: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ host C++: libart <= art/runtime/oat_quick_method_header.cc In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/oat_file_manager.h:26, from art/runtime/oat_file_manager.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22, from art/runtime/native/java_lang_reflect_Constructor.cc:27: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/common_throws.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ host C++: libart <= art/runtime/object_lock.cc In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/zip_archive.h:24: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/offsets.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/oat_quick_method_header.h:20, from art/runtime/oat_quick_method_header.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' /usr/include/c++/13.2.1/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Val_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]': /usr/include/c++/13.2.1/bits/stl_algo.h:1792:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1792 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/array-alloc-inl.h:20: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/handle_scope-inl.h:25, from art/runtime/native/dalvik_system_VMDebug.cc:37: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc/heap.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]': /usr/include/c++/13.2.1/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1812 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/parsed_options.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/oat_file_manager.cc:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/utils.h:32, from art/runtime/oat_quick_method_header.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/object_lock.h:20, from art/runtime/object_lock.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/plugin.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/parsed_options.h:25, from art/runtime/parsed_options.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h: In member function 'art::ObjPtr > art::mirror::MethodType::GetPTypes()': art/runtime/mirror/method_type-inl.h:28:69: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 28 | return GetFieldObject>(OFFSET_OF_OBJECT_MEMBER(MethodType, p_types_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h:28:45: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 28 | return GetFieldObject>(OFFSET_OF_OBJECT_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h: In member function 'art::ObjPtr art::mirror::MethodType::GetRType()': art/runtime/mirror/method_type-inl.h:36:56: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodType, r_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h:36:32: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/libartbase/base/histogram.h:21: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30, from art/runtime/class_linker-inl.h:22, from art/runtime/class_root.h:20, from art/runtime/mirror/method_handles_lookup.cc:20: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/scoped_thread_state_change-inl.h:27, from art/runtime/oat_quick_method_header.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/quick_exception_handler.cc In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::CallsiteTypeOffset()': art/runtime/mirror/emulated_stack_frame.h:70:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 70 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, callsite_type_)); art/runtime/mirror/emulated_stack_frame.h:70:25: note: in expansion of macro 'OFFSETOF_MEMBER' 70 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, callsite_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::TypeOffset()': art/runtime/mirror/emulated_stack_frame.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, type_)); art/runtime/mirror/emulated_stack_frame.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::ReferencesOffset()': art/runtime/mirror/emulated_stack_frame.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, references_)); art/runtime/mirror/emulated_stack_frame.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, references_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::StackFrameOffset()': art/runtime/mirror/emulated_stack_frame.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, stack_frame_)); art/runtime/mirror/emulated_stack_frame.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, stack_frame_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame-inl.h: In member function 'art::ObjPtr art::mirror::EmulatedStackFrame::GetType()': art/runtime/mirror/emulated_stack_frame-inl.h:30:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 30 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(EmulatedStackFrame, type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame-inl.h:30:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 30 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(EmulatedStackFrame, type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame-inl.h: In member function 'art::ObjPtr > art::mirror::EmulatedStackFrame::GetReferences()': art/runtime/mirror/emulated_stack_frame-inl.h:39:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 39 | OFFSET_OF_OBJECT_MEMBER(EmulatedStackFrame, references_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame-inl.h:39:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 39 | OFFSET_OF_OBJECT_MEMBER(EmulatedStackFrame, references_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame-inl.h: In member function 'art::ObjPtr > art::mirror::EmulatedStackFrame::GetStackFrame()': art/runtime/mirror/emulated_stack_frame-inl.h:44:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 44 | OFFSET_OF_OBJECT_MEMBER(EmulatedStackFrame, stack_frame_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame-inl.h:44:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 44 | OFFSET_OF_OBJECT_MEMBER(EmulatedStackFrame, stack_frame_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/method_handle_impl-inl.h: In member function 'art::ObjPtr art::mirror::MethodHandle::GetMethodType()': art/runtime/mirror/method_handle_impl-inl.h:29:69: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl-inl.h:29:45: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/method_handle_impl-inl.h: In member function 'art::ObjPtr art::mirror::MethodHandle::GetNominalType()': art/runtime/mirror/method_handle_impl-inl.h:33:69: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl-inl.h:33:45: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::VarTypeOffset()': art/runtime/mirror/var_handle.h:163:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); art/runtime/mirror/var_handle.h:163:25: note: in expansion of macro 'OFFSETOF_MEMBER' 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType0Offset()': art/runtime/mirror/var_handle.h:167:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); art/runtime/mirror/var_handle.h:167:25: note: in expansion of macro 'OFFSETOF_MEMBER' 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType1Offset()': art/runtime/mirror/var_handle.h:171:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); art/runtime/mirror/var_handle.h:171:25: note: in expansion of macro 'OFFSETOF_MEMBER' 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::AccessModesBitMaskOffset()': art/runtime/mirror/var_handle.h:175:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); art/runtime/mirror/var_handle.h:175:25: note: in expansion of macro 'OFFSETOF_MEMBER' 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::FieldVarHandle::ArtFieldOffset()': art/runtime/mirror/var_handle.h:202:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::FieldVarHandle' is conditionally-supported [-Winvalid-offsetof] 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); art/runtime/mirror/var_handle.h:202:25: note: in expansion of macro 'OFFSETOF_MEMBER' 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteArrayViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:242:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteArrayViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:242:25: note: in expansion of macro 'OFFSETOF_MEMBER' 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteBufferViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:282:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteBufferViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:282:25: note: in expansion of macro 'OFFSETOF_MEMBER' 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/oat_file_manager.cc:45: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/runtime/mirror/object-inl.h:22, from art/runtime/object_lock.cc:20: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/runtime/gc/space/large_object_space.h:20, from art/runtime/parsed_options.h:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/jni/jni_internal.cc: At global scope: art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from '_jobject* (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to '_jobject* (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | _jobject* (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka _jobject* (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from '_jobject* (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to '_jobject* (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | _jobject* (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka _jobject* (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jboolean (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'unsigned char (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jboolean (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'unsigned char (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jboolean (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka unsigned char (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jbyte (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'signed char (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jbyte (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'signed char (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jbyte (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka signed char (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jchar (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'short unsigned int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jchar (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'short unsigned int (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jchar (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka short unsigned int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jshort (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'short int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jshort (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'short int (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jshort (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka short int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jint (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jint (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'int (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jint (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jlong (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'long long int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jlong (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'long long int (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jlong (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka long long int (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jfloat (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'float (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jfloat (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'float (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jfloat (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka float (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jdouble (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'double (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'jdouble (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'double (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jdouble (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka double (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'void (*)(JNIEnv*, jobject, jmethodID, const jvalue*)' {aka 'void (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)'} to 'void (*)(JNIEnv*, jobject, jmethodID, jvalue*)' {aka 'void (*)(_JNIEnv*, _jobject*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | void (*)(JNIEnv*, jobject, jmethodID, const jvalue*) {aka void (*)(_JNIEnv*, _jobject*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from '_jobject* (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to '_jobject* (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | _jobject* (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka _jobject* (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jboolean (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'unsigned char (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jboolean (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'unsigned char (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jboolean (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka unsigned char (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jbyte (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'signed char (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jbyte (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'signed char (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jbyte (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka signed char (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jchar (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'short unsigned int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jchar (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'short unsigned int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jchar (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka short unsigned int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jshort (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'short int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jshort (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'short int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jshort (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka short int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jint (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jint (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jint (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jlong (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'long long int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jlong (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'long long int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jlong (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka long long int (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jfloat (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'float (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jfloat (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'float (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jfloat (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka float (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jdouble (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'double (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'jdouble (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'double (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jdouble (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka double (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'void (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*)' {aka 'void (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)'} to 'void (*)(JNIEnv*, jobject, jclass, jmethodID, jvalue*)' {aka 'void (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | void (*)(JNIEnv*, jobject, jclass, jmethodID, const jvalue*) {aka void (*)(_JNIEnv*, _jobject*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from '_jobject* (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to '_jobject* (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka '_jobject* (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | _jobject* (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka _jobject* (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jboolean (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'unsigned char (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jboolean (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'unsigned char (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jboolean (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka unsigned char (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jbyte (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'signed char (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jbyte (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'signed char (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jbyte (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka signed char (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jchar (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'short unsigned int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jchar (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'short unsigned int (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jchar (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka short unsigned int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jshort (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'short int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jshort (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'short int (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jshort (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka short int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jint (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jint (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'int (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jint (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jlong (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'long long int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jlong (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'long long int (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jlong (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka long long int (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jfloat (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'float (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jfloat (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'float (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jfloat (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka float (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'jdouble (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'double (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'jdouble (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'double (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | jdouble (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka double (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/jni/jni_internal.cc:3266:1: warning: invalid conversion from 'void (*)(JNIEnv*, jclass, jmethodID, const jvalue*)' {aka 'void (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)'} to 'void (*)(JNIEnv*, jclass, jmethodID, jvalue*)' {aka 'void (*)(_JNIEnv*, _jclass*, _jmethodID*, jvalue*)'} [-fpermissive] 3266 | }; | ^ | | | void (*)(JNIEnv*, jclass, jmethodID, const jvalue*) {aka void (*)(_JNIEnv*, _jclass*, _jmethodID*, const jvalue*)} art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/method_handles.cc: In function 'bool art::{anonymous}::DoVarHandleInvokeTranslation(art::Thread*, art::ShadowFrame&, bool, art::Handle, art::Handle, const art::InstructionOperands*, art::JValue*)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::mirror::MethodHandle::Kind' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/method_handles.cc:1058:5: note: in expansion of macro 'DCHECK_EQ' 1058 | DCHECK_EQ(method_handle->GetHandleKind(), mirror::MethodHandle::Kind::kInvokeVarHandle); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/method_handles.cc:1058:5: note: in expansion of macro 'DCHECK_EQ' 1058 | DCHECK_EQ(method_handle->GetHandleKind(), mirror::MethodHandle::Kind::kInvokeVarHandle); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::mirror::MethodHandle::Kind' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/method_handles.cc:1058:5: note: in expansion of macro 'DCHECK_EQ' 1058 | DCHECK_EQ(method_handle->GetHandleKind(), mirror::MethodHandle::Kind::kInvokeVarHandle); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/method_handles.cc:1058:5: note: in expansion of macro 'DCHECK_EQ' 1058 | DCHECK_EQ(method_handle->GetHandleKind(), mirror::MethodHandle::Kind::kInvokeVarHandle); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::mirror::MethodHandle::Kind' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/method_handles.cc:1058:5: note: in expansion of macro 'DCHECK_EQ' 1058 | DCHECK_EQ(method_handle->GetHandleKind(), mirror::MethodHandle::Kind::kInvokeVarHandle); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/method_handles.cc:1058:5: note: in expansion of macro 'DCHECK_EQ' 1058 | DCHECK_EQ(method_handle->GetHandleKind(), mirror::MethodHandle::Kind::kInvokeVarHandle); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::mirror::MethodHandle::Kind' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/method_handles.cc:1058:5: note: in expansion of macro 'DCHECK_EQ' 1058 | DCHECK_EQ(method_handle->GetHandleKind(), mirror::MethodHandle::Kind::kInvokeVarHandle); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/method_handles.cc:1058:5: note: in expansion of macro 'DCHECK_EQ' 1058 | DCHECK_EQ(method_handle->GetHandleKind(), mirror::MethodHandle::Kind::kInvokeVarHandle); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::mirror::MethodHandle::Kind' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/method_handles.cc:1058:5: note: in expansion of macro 'DCHECK_EQ' 1058 | DCHECK_EQ(method_handle->GetHandleKind(), mirror::MethodHandle::Kind::kInvokeVarHandle); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/method_handles.cc:1058:5: note: in expansion of macro 'DCHECK_EQ' 1058 | DCHECK_EQ(method_handle->GetHandleKind(), mirror::MethodHandle::Kind::kInvokeVarHandle); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::mirror::MethodHandle::Kind' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/method_handles.cc:1058:5: note: in expansion of macro 'DCHECK_EQ' 1058 | DCHECK_EQ(method_handle->GetHandleKind(), mirror::MethodHandle::Kind::kInvokeVarHandle); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/method_handles.cc:1058:5: note: in expansion of macro 'DCHECK_EQ' 1058 | DCHECK_EQ(method_handle->GetHandleKind(), mirror::MethodHandle::Kind::kInvokeVarHandle); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/common_throws.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/hidden_api.h:25, from art/runtime/runtime_options.h:31, from art/runtime/parsed_options.h:31: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30, from art/runtime/class_linker-inl.h:22, from art/runtime/class_root.h:20, from art/runtime/mirror/emulated_stack_frame.cc:22: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/runtime_options.h:33: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/class_loader_context.h:25, from art/runtime/oat_file_assistant.h:30: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/oat_file_assistant.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/parsed_options.cc:25: warning: "_GNU_SOURCE" redefined 25 | #define _GNU_SOURCE | : note: this is the location of the previous definition art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/quick_exception_handler.h:22, from art/runtime/quick_exception_handler.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/quick_exception_handler.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In static member function 'static void art::mirror::DexCache::SetNativePairPtrSize(std::atomic >*, size_t, art::mirror::NativeDexCachePair, art::PointerSize) [with T = art::ArtMethod]', inlined from 'void art::gc::space::ImageSpace::PatchObjectVisitor::FixupDexCacheArrayEntry(std::atomic >*, uint32_t) [with T = art::ArtMethod; art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::Loader::ForwardAddress; NativeVisitor = art::gc::space::ImageSpace::Loader::ForwardAddress]' at art/runtime/gc/space/image_space.cc:618:45: art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 329 | AtomicStoreRelease16B(&array[idx], v); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algo.h:61: /usr/include/c++/13.2.1/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = art::debug::ElfCompilationUnit; _Compare = __gnu_cxx::__ops::_Iter_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]': /usr/include/c++/13.2.1/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In static member function 'static void art::mirror::DexCache::SetNativePairPtrSize(std::atomic >*, size_t, art::mirror::NativeDexCachePair, art::PointerSize) [with T = art::ArtField]', inlined from 'void art::gc::space::ImageSpace::PatchObjectVisitor::FixupDexCacheArrayEntry(std::atomic >*, uint32_t) [with T = art::ArtField; art::PointerSize kPointerSize = art::PointerSize::k64; HeapVisitor = art::gc::space::ImageSpace::Loader::ForwardAddress; NativeVisitor = art::gc::space::ImageSpace::Loader::ForwardAddress]' at art/runtime/gc/space/image_space.cc:618:45: art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 329 | AtomicStoreRelease16B(&array[idx], v); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl-inl.h: In member function 'art::ObjPtr art::mirror::MethodHandle::GetMethodType()': art/runtime/mirror/method_handle_impl-inl.h:29:69: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl-inl.h:29:45: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl-inl.h: In member function 'art::ObjPtr art::mirror::MethodHandle::GetNominalType()': art/runtime/mirror/method_handle_impl-inl.h:33:69: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl-inl.h:33:45: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ host C++: libart <= art/runtime/read_barrier.cc art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30, from art/runtime/class_linker-inl.h:22, from art/runtime/class_root.h:20, from art/runtime/mirror/method_type.cc:20: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/runtime.h:38, from art/runtime/mirror/array-inl.h:27: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ host C++: libart <= art/runtime/reference_table.cc In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22, from art/runtime/mirror/method_handle_impl.cc:19: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/heap.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]': /usr/include/c++/13.2.1/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1918 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /usr/include/c++/13.2.1/bits/stl_algo.h:1932:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1932 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:31: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ host C++: libart <= art/runtime/reflection.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/mirror/class-inl.h:22: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/monitor.cc:347:6: warning: 'always_inline' function might not be inlinable [-Wattributes] 347 | void Monitor::AtraceMonitorUnlock() { | ^~~~~~~ art/runtime/monitor.cc:285:6: warning: 'always_inline' function might not be inlinable [-Wattributes] 285 | void Monitor::AtraceMonitorLock(Thread* self, ObjPtr obj, bool is_wait) { | ^~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/quick_exception_handler.cc:20: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetType(art::ObjPtr) [with bool kTransactionActive = false]': art/runtime/mirror/field-inl.h:89:35: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/jni/jni_internal.cc:792:63: required from here art/runtime/mirror/field-inl.h:104:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:104:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetDeclaringClass(art::ObjPtr) [with bool kTransactionActive = false]': art/runtime/mirror/field-inl.h:90:45: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/jni/jni_internal.cc:792:63: required from here art/runtime/mirror/field-inl.h:99:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:99:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetAccessFlags(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:91:42: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/jni/jni_internal.cc:792:63: required from here art/runtime/mirror/field.h:98:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:98:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetDexFieldIndex(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:92:44: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/jni/jni_internal.cc:792:63: required from here art/runtime/mirror/field.h:103:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:103:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetOffset(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:93:37: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/jni/jni_internal.cc:792:63: required from here art/runtime/mirror/field.h:108:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:108:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ host C++: libart <= art/runtime/runtime.cc art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/read_barrier.h:22, from art/runtime/read_barrier.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = art::debug::ElfCompilationUnit; _Compare = __gnu_cxx::__ops::_Iter_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]': /usr/include/c++/13.2.1/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/libartbase/base/file_utils.h:26, from art/runtime/runtime.h:30, from art/runtime/runtime.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]': /usr/include/c++/13.2.1/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1918 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h:1932:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1932 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/runtime.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/interpreter/interpreter_common.h:43: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/runtime/reference_table.h:25, from art/runtime/reference_table.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26, from art/runtime/reference_table.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/runtime.cc:41: warning: "_GNU_SOURCE" redefined 41 | #define _GNU_SOURCE | : note: this is the location of the previous definition art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/jit/jit.h:20, from art/runtime/quick_exception_handler.cc:31: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/reflection.h:20, from art/runtime/reflection-inl.h:20, from art/runtime/reflection.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/locks.h:23: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class_ext.h:21, from art/runtime/object_lock.cc:19: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/var_handle.h:23: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class_ext.h:22: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/runtime.cc:55: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/oat_file_manager.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object-inl.h:22: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/jvalue-inl.h:22, from art/runtime/reflection-inl.h:27: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/oat_file.cc:40: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/list:62, from art/runtime/oat_file.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/reference_table.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/runtime.h:38, from art/runtime/mirror/array-inl.h:27: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/jni/jni_internal.cc:347:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 347 | ALWAYS_INLINE static bool ShouldDenyAccessToMember(T* member, Thread* self) | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/jni/jni_internal.cc:347:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 347 | ALWAYS_INLINE static bool ShouldDenyAccessToMember(T* member, Thread* self) | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/oat_file.cc:41: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/array-inl.h:26: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetDexFieldIndex()': art/runtime/mirror/field.h:42:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:42:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetAccessFlags()': art/runtime/mirror/field.h:48:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:48:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'int32_t art::mirror::Field::GetOffset()': art/runtime/mirror/field.h:68:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:68:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/runtime_callbacks.cc In file included from art/libelffile/elf/elf_utils.h:22, from art/runtime/elf_file.h:25, from art/runtime/runtime.cc:81: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 149 | ALWAYS_INLINE bool DoFieldPutCommon(Thread* self, | ^~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:149:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 91 | static ALWAYS_INLINE bool DoFieldGetCommon(Thread* self, | ^~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/common_dex_operations.h:91:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22, from art/runtime/mirror/field-inl.h:23, from art/runtime/native/java_lang_reflect_Field.cc:32: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/runtime.cc:97: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/runtime_common.cc In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/reference_table.cc:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26, from art/runtime/reflection-inl.h:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/oat_file.cc:52: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/oat_quick_method_header.cc:19: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/dumpable.h:22, from art/runtime/runtime_common.h:34, from art/runtime/runtime_common.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/scoped_thread_state_change-inl.h:28: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31, from art/runtime/oat_file_assistant.cc:34: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ host C++: libart <= art/runtime/runtime_intrinsics.cc In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/native_stack_dump.h:24, from art/runtime/runtime_common.h:36: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetDeclaringClass()': art/runtime/mirror/field-inl.h:33:56: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:33:32: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetType()': art/runtime/mirror/field-inl.h:41:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:41:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/runtime_callbacks.h:23, from art/runtime/runtime_callbacks.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/runtime_common.cc:36: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/scoped_thread_state_change-inl.h:28: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/runtime_options.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/interpreter/interpreter_common.h:39: art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h: In member function 'art::ObjPtr > art::mirror::MethodType::GetPTypes()': art/runtime/mirror/method_type-inl.h:28:69: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 28 | return GetFieldObject>(OFFSET_OF_OBJECT_MEMBER(MethodType, p_types_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h:28:45: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 28 | return GetFieldObject>(OFFSET_OF_OBJECT_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h: In member function 'art::ObjPtr art::mirror::MethodType::GetRType()': art/runtime/mirror/method_type-inl.h:36:56: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodType, r_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h:36:32: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22, from art/runtime/native/java_lang_Class.cc:33: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22, from art/runtime/mirror/field-inl.h:23: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/accessible_object.h:20, from art/runtime/mirror/field.h:20, from art/runtime/mirror/field-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/mirror/object_array-alloc-inl.h:22, from art/runtime/native/java_lang_reflect_Method.cc:30: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/runtime_callbacks.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22, from art/runtime/native/java_lang_reflect_Executable.cc:27: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/scoped_thread_state_change.cc In file included from art/runtime/thread-current-inl.h:20, from art/runtime/runtime_callbacks.cc:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/quasi_atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jni/jni_internal.cc:46: art/runtime/hidden_api.h: In function 'bool art::hiddenapi::ShouldDenyAccessToMember(T*, const std::function&, AccessMethod) [with T = art::ArtField]': art/runtime/hidden_api.h:468:1: warning: control reaches end of non-void function [-Wreturn-type] 468 | } | ^ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/array-inl.h:26: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/hidden_api.h:21: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/parsed_options.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/hidden_api.h: In function 'bool art::hiddenapi::ShouldDenyAccessToMember(T*, const std::function&, AccessMethod) [with T = art::ArtMethod]': art/runtime/hidden_api.h:468:1: warning: control reaches end of non-void function [-Wreturn-type] art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:29: art/libdexfile/dex/primitive.h: In static member function 'static constexpr size_t art::Primitive::BitsRequiredForLargestValue(Type)': art/libdexfile/dex/primitive.h:195:3: warning: control reaches end of non-void function [-Wreturn-type] 195 | } | ^ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/art_method.h:30, from art/runtime/art_method-inl.h:20, from art/runtime/runtime_intrinsics.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/method_handles.cc: In function 'bool art::{anonymous}::MethodHandleFieldPut(art::Thread*, art::ShadowFrame&, art::ObjPtr&, art::ArtField*, art::Primitive::Type, art::JValue&)': art/runtime/method_handles.cc:845:1: warning: control reaches end of non-void function [-Wreturn-type] 845 | } | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/runtime_options.h:25, from art/runtime/runtime_options.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/signal_catcher.cc art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetDeclaringClass()': art/runtime/mirror/field-inl.h:33:56: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:33:32: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetType()': art/runtime/mirror/field-inl.h:41:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:41:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/scoped_thread_state_change.h:22, from art/runtime/scoped_thread_state_change.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/array_ref.h:23, from art/runtime/oat_file.h:25: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/stack.cc In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/signal_catcher.h:21, from art/runtime/signal_catcher.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/oat_file.cc:64: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h: In member function 'art::ObjPtr > art::mirror::MethodType::GetPTypes()': art/runtime/mirror/method_type-inl.h:28:69: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 28 | return GetFieldObject>(OFFSET_OF_OBJECT_MEMBER(MethodType, p_types_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h:28:45: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 28 | return GetFieldObject>(OFFSET_OF_OBJECT_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h: In member function 'art::ObjPtr art::mirror::MethodType::GetRType()': art/runtime/mirror/method_type-inl.h:36:56: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodType, r_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h:36:32: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/list:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/runtime/mirror/object-inl.h:22, from art/runtime/scoped_thread_state_change.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/dchecked_vector.h:24, from art/runtime/class_loader_context.h:24: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ host C++: libart <= art/runtime/stack_map.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/thread.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/signal_catcher.cc:38: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/utils.h:32, from art/cmdline/cmdline_result.h:21, from art/cmdline/cmdline_parse_result.h:20, from art/cmdline/cmdline_type_parser.h:20, from art/cmdline/cmdline_types.h:23, from art/runtime/runtime_options.h:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.cc: In static member function 'static T art::mirror::{anonymous}::ValueGetter::Get(art::ShadowFrameGetter*) [with T = float]': art/runtime/mirror/var_handle.cc:848:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 848 | return *reinterpret_cast(&raw_value); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/var_handle.cc: In static member function 'static T art::mirror::{anonymous}::ValueGetter::Get(art::ShadowFrameGetter*) [with T = double]': art/runtime/mirror/var_handle.cc:854:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 854 | return *reinterpret_cast(&raw_value); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetDexFieldIndex()': art/runtime/mirror/field.h:42:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:42:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetAccessFlags()': art/runtime/mirror/field.h:48:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:48:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'int32_t art::mirror::Field::GetOffset()': art/runtime/mirror/field.h:68:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:68:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetDeclaringClass()': art/runtime/mirror/field-inl.h:33:56: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:33:32: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 33 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In member function 'art::ObjPtr art::mirror::Field::GetType()': art/runtime/mirror/field-inl.h:41:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:41:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/stack_map.h:22, from art/runtime/stack_map.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/thread_list.cc art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/stack.h:23, from art/runtime/stack.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/thread_pool.cc art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29, from art/runtime/signal_catcher.cc:42: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/memory_region.h:29, from art/libartbase/base/bit_memory_region.h:20, from art/runtime/stack_map.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/stack.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ host C++: libart <= art/runtime/ti/agent.cc art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/barrier.h:32, from art/runtime/thread_list.h:20, from art/runtime/thread_list.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/quick_exception_handler.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/barrier.h:32, from art/runtime/thread_pool.h:24, from art/runtime/thread_pool.cc:18: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] host C++: libart <= art/runtime/trace.cc In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/cmdline/cmdline_types.h:35: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/scoped_thread_state_change-inl.h:27, from art/runtime/stack_map.cc:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread_list.cc:32: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread_list.cc:33: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/transaction.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/thread-current-inl.h:20, from art/runtime/thread_pool.cc:35: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/thread.h:28, from art/runtime/thread.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/thread.h:30: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/debugger.h:39, from art/runtime/thread_list.cc:37: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/ti/agent.cc:21: art/sigchainlib/../../bionic_translation/linker/dlfcn.h:3: warning: "RTLD_LAZY" redefined 3 | #define RTLD_LAZY 0x00001 /* Lazy function call binding. */ | In file included from art/runtime/ti/agent.h:20, from art/runtime/ti/agent.cc:17: /usr/include/dlfcn.h:10: note: this is the location of the previous definition 10 | #define RTLD_LAZY 1 | art/sigchainlib/../../bionic_translation/linker/dlfcn.h:4: warning: "RTLD_NOW" redefined 4 | #define RTLD_NOW 0x00002 /* Immediate function call binding. */ | /usr/include/dlfcn.h:11: note: this is the location of the previous definition 11 | #define RTLD_NOW 2 | art/sigchainlib/../../bionic_translation/linker/dlfcn.h:6: warning: "RTLD_NOLOAD" redefined 6 | #define RTLD_NOLOAD 0x00004 /* Do not load the object. */ | /usr/include/dlfcn.h:12: note: this is the location of the previous definition 12 | #define RTLD_NOLOAD 4 | art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/logging.h:22, from art/runtime/ti/agent.cc:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/native/java_lang_reflect_Field.cc: In function 'void art::SetFieldValue(ObjPtr, ObjPtr, Primitive::Type, bool, const JValue&)': art/runtime/native/java_lang_reflect_Field.cc:308:5: warning: this statement may fall through [-Wimplicit-fallthrough=] 308 | if (allow_references) { | ^~ art/runtime/native/java_lang_reflect_Field.cc:318:3: note: here 318 | case Primitive::kPrimVoid: | ^~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jni/java_vm_ext.h:22, from art/runtime/ti/agent.cc:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart <= art/runtime/var_handles.cc art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31, from art/runtime/aot_class_linker.h:20, from art/runtime/runtime.cc:46: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/stl_tree.h:63, from /usr/include/c++/13.2.1/set:62, from art/runtime/runtime.h:24: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/stack.cc:33: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetType(art::ObjPtr) [with bool kTransactionActive = false]': art/runtime/mirror/field-inl.h:89:35: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/native/java_lang_invoke_MethodHandleImpl.cc:50:82: required from here art/runtime/mirror/field-inl.h:104:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:104:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetDeclaringClass(art::ObjPtr) [with bool kTransactionActive = false]': art/runtime/mirror/field-inl.h:90:45: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/native/java_lang_invoke_MethodHandleImpl.cc:50:82: required from here art/runtime/mirror/field-inl.h:99:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:99:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetAccessFlags(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:91:42: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/native/java_lang_invoke_MethodHandleImpl.cc:50:82: required from here art/runtime/mirror/field.h:98:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:98:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetDexFieldIndex(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:92:44: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/native/java_lang_invoke_MethodHandleImpl.cc:50:82: required from here art/runtime/mirror/field.h:103:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:103:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetOffset(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:93:37: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/native/java_lang_invoke_MethodHandleImpl.cc:50:82: required from here art/runtime/mirror/field.h:108:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:108:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/transaction.h:20, from art/runtime/transaction.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/trace.h:29, from art/runtime/trace.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/trace.h:30: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/ti/agent.cc:27: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/vdex_file.cc art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/runtime_callbacks.cc:21: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/runtime_callbacks.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25, from art/runtime/scoped_thread_state_change-inl.h:29, from art/runtime/ti/agent.cc:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/set:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/scoped_thread_state_change-inl.h:28: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/verifier/class_verifier.cc art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/handle.h:23, from art/runtime/mirror/var_handle.h:20, from art/runtime/var_handles.h:20, from art/runtime/var_handles.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/thread.cc:44: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/native/java_lang_Class.cc:48: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/transaction.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/verifier/class_verifier.h:25, from art/runtime/verifier/class_verifier.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/interpreter/interpreter_common.h:32, from art/runtime/method_handles-inl.h:24, from art/runtime/var_handles.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/hidden_api.h:25, from art/runtime/runtime_options.h:31: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/trace.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/vdex_file.h:24, from art/runtime/vdex_file.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {art::debug::ElfCompilationUnit}; _Tp = art::debug::ElfCompilationUnit; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = art::debug::ElfCompilationUnit; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'void art::debug::WriteDebugInfo(art::ElfBuilder*, const DebugInfo&) [with ElfTypes = art::ElfTypes32]' at art/compiler/debug/elf_debug_writer.cc:79:32: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]', inlined from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator >; _Compare = art::debug::WriteDebugInfo(art::ElfBuilder*, const DebugInfo&)::]' at /usr/include/c++/13.2.1/bits/stl_algo.h:4894:18, inlined from 'void art::debug::WriteDebugInfo(art::ElfBuilder*, const DebugInfo&) [with ElfTypes = art::ElfTypes32]' at art/compiler/debug/elf_debug_writer.cc:81:12: /usr/include/c++/13.2.1/bits/stl_algo.h:1947:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1947 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1948 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1949 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]' at /usr/include/c++/13.2.1/bits/stl_algo.h:1950:31, inlined from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator >; _Compare = art::debug::WriteDebugInfo(art::ElfBuilder*, const DebugInfo&)::]' at /usr/include/c++/13.2.1/bits/stl_algo.h:4894:18, inlined from 'void art::debug::WriteDebugInfo(art::ElfBuilder*, const DebugInfo&) [with ElfTypes = art::ElfTypes32]' at art/compiler/debug/elf_debug_writer.cc:81:12: /usr/include/c++/13.2.1/bits/stl_algo.h:1859:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1859 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h:1864:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1864 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libartbase/base/mem_map.h:28, from art/runtime/vdex_file.h:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/verifier/class_verifier.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/runtime_options.h:33: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/verifier/instruction_flags.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/indirect_reference_table.h:32, from art/runtime/jni/jni_env_ext.h:24, from art/runtime/non_debuggable_classes.cc:19: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] host C++: libart <= art/runtime/verifier/method_verifier.cc art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/oat_file.h:38, from art/runtime/class_loader_context.h:28: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/class_loader_context.h:26: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/transaction.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/native/sun_misc_Unsafe.cc:34: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/mirror/class-inl.h:22: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39, from art/runtime/vdex_file.cc:37: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/verifier/verifier_deps.h:30, from art/runtime/vdex_file.cc:41: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/transaction.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/verifier/instruction_flags.h:23, from art/runtime/verifier/instruction_flags.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/mirror/object_array-alloc-inl.h:22, from art/runtime/native/java_lang_reflect_Array.cc:27: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/verifier/reg_type.cc In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/locks.h:23: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/runtime/verifier/method_verifier.h:26, from art/runtime/verifier/method_verifier-inl.h:20, from art/runtime/verifier/method_verifier.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/runtime_callbacks.cc:24: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/verifier/method_verifier.h:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/locks.h:23: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31, from art/runtime/signal_catcher.cc:37: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/trace.cc:41: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/verifier/method_verifier.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_allocator.h:28, from art/libartbase/base/arena_object.h:22, from art/runtime/verifier/reg_type.h:26, from art/runtime/verifier/reg_type-inl.h:20, from art/runtime/verifier/reg_type.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/verifier/reg_type.h:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/iomanip:42, from art/runtime/runtime_common.h:32: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/stack.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ host C++: libart <= art/runtime/verifier/reg_type_cache.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/verifier_deps.h:30, from art/runtime/verifier/reg_type-inl.h:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/runtime_common.cc:35: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/verifier/reg_type.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/verifier/register_line.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/verifier/verifier_deps.cc /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {double}; _Tp = double; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator::iterator std::vector<_Tp, _Alloc>::_M_insert_rval(const_iterator, value_type&&) [with _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]', inlined from 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1391:30, inlined from 'void art::InternTable::Table::AddInternStrings(art::InternTable::UnorderedSet&&, bool)' at art/runtime/intern_table-inl.h:71:17, inlined from 'size_t art::InternTable::AddTableFromMemory(const uint8_t*, const Visitor&, bool) [with Visitor = art::gc::space::ImageSpace::Loader::RelocateInPlace(art::ImageHeader&, uint8_t*, art::gc::accounting::ContinuousSpaceBitmap*, const art::OatFile*, std::string*)::]' at art/runtime/intern_table-inl.h:52:39, inlined from 'static bool art::gc::space::ImageSpace::Loader::RelocateInPlace(art::ImageHeader&, uint8_t*, art::gc::accounting::ContinuousSpaceBitmap*, const art::OatFile*, std::string*) [with art::PointerSize kPointerSize = art::PointerSize::k64]' at art/runtime/gc/space/image_space.cc:1344:45: /usr/include/c++/13.2.1/bits/vector.tcc:370:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 370 | _M_insert_aux(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc:372:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 372 | _M_realloc_insert(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/class_linker.h:29, from art/runtime/verifier/reg_type_cache-inl.h:20, from art/runtime/verifier/reg_type_cache.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from /usr/include/c++/13.2.1/vector:66: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:223:28: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {double}; _Tp = double; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = double; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:224:28: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:227:30: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {double}; _Tp = double; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = double; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:228:30: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/verify_object.cc art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/verifier/register_line.h:27, from art/runtime/verifier/register_line.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/stack_map.cc:22: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/well_known_classes.cc art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verify_object.h:22, from art/runtime/verify_object-inl.h:20, from art/runtime/verify_object.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/class_root.h:20, from art/runtime/verifier/reg_type_cache-inl.h:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24, from art/runtime/oat_file-inl.h:23, from art/runtime/oat_file.cc:67: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/verifier/verifier_deps.h:25, from art/runtime/verifier/verifier_deps.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/verifier/verifier_deps.h:30, from art/runtime/verifier/reg_type-inl.h:26, from art/runtime/verifier/register_line.cc:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27, from art/runtime/mirror/emulated_stack_frame.h:22: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/interpreter/interpreter_common.h:43: art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/vdex_file.h:28: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/vdex_file.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/verifier_deps.h:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/class_root.h:20, from art/runtime/verifier/reg_type_cache-inl.h:21, from art/runtime/verifier/register_line-inl.h:25, from art/runtime/verifier/register_line.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C++: libart <= art/runtime/arch/context.cc libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/well_known_classes.h:20, from art/runtime/well_known_classes.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/handle.h:20: art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::VarTypeOffset()': art/runtime/mirror/var_handle.h:163:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); art/runtime/mirror/var_handle.h:163:25: note: in expansion of macro 'OFFSETOF_MEMBER' 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType0Offset()': art/runtime/mirror/var_handle.h:167:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); art/runtime/mirror/var_handle.h:167:25: note: in expansion of macro 'OFFSETOF_MEMBER' 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType1Offset()': art/runtime/mirror/var_handle.h:171:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); art/runtime/mirror/var_handle.h:171:25: note: in expansion of macro 'OFFSETOF_MEMBER' 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::AccessModesBitMaskOffset()': art/runtime/mirror/var_handle.h:175:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); art/runtime/mirror/var_handle.h:175:25: note: in expansion of macro 'OFFSETOF_MEMBER' 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::FieldVarHandle::ArtFieldOffset()': art/runtime/mirror/var_handle.h:202:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::FieldVarHandle' is conditionally-supported [-Winvalid-offsetof] 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); art/runtime/mirror/var_handle.h:202:25: note: in expansion of macro 'OFFSETOF_MEMBER' 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteArrayViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:242:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteArrayViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:242:25: note: in expansion of macro 'OFFSETOF_MEMBER' 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteBufferViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:282:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteBufferViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:282:25: note: in expansion of macro 'OFFSETOF_MEMBER' 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/arch/context.h:23, from art/runtime/arch/context-inl.h:20, from art/runtime/arch/context.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/handle.h:27, from art/runtime/runtime_callbacks.h:25: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/arch/instruction_set_features.cc art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/verifier/class_verifier.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/verifier/verifier_deps.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/runtime/well_known_classes.cc:28: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/method_handles.h:25, from art/runtime/method_handles-inl.h:20: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/obj_ptr.h:23, from art/runtime/verify_object.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/runtime/hidden_api.h:25, from art/runtime/well_known_classes.cc:30: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/interpreter/interpreter.h:21, from art/runtime/interpreter/interpreter_common.h:20: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ host C++: libart <= art/runtime/arch/memcmp16.cc /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/arch/instruction_set_features.h:24, from art/runtime/arch/instruction_set_features.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/utils.h:32, from art/runtime/arch/instruction_set_features.cc:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/arch/arm/instruction_set_features_arm.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27, from art/runtime/object_lock.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/file_utils.h:24: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31, from art/runtime/debugger.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/barrier.h:30: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/arch/arm/registers_arm.cc art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/runtime/mirror/object-inl.h:22, from art/runtime/verify_object-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/method_reference.h:22, from art/runtime/jit/profile_saver.h:22, from art/runtime/signal_catcher.cc:39: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/arch/instruction_set_features.h:24, from art/runtime/arch/arm/instruction_set_features_arm.h:20, from art/runtime/arch/arm/instruction_set_features_arm.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31, from art/runtime/vdex_file.cc:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/arch/arm64/instruction_set_features_arm64.cc In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/runtime_options.h:34: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/deque:76, from art/runtime/thread_pool.h:20: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/runtime/verifier/method_verifier.h:28: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/verifier/method_verifier.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread_pool.cc:34: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/arch/instruction_set_features.h:24, from art/runtime/arch/arm64/instruction_set_features_arm64.h:20, from art/runtime/arch/arm64/instruction_set_features_arm64.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/reg_type.h:27: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/stl_tree.h:63, from /usr/include/c++/13.2.1/set:62, from art/runtime/verifier/reg_type.h:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/common_throws.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Zygote' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Help' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ShowVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath_a' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathLocations' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Image' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CheckJni' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniOptsForceCopy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpProvider' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.def:48:43: warning: declaration of 'art::RuntimeArgumentMap::Key art::RuntimeArgumentMap::JdwpProvider' changes meaning of 'JdwpProvider' [-Wchanges-meaning] 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:109: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ art/runtime/runtime_options.def:48:22: note: used here to mean 'enum class art::JdwpProvider' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:63: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ In file included from art/cmdline/cmdline_types.h:37, from art/runtime/runtime_options.h:27: art/runtime/jdwp_provider.h:26:12: note: declared here 26 | enum class JdwpProvider { | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryMaximumSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryInitialSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapGrowthLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMinFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMaxFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NonMovingSpaceCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapTargetUtilization' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForegroundHeapGrowthMultiplier' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ParallelGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ConcGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FinalizerTimeoutMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MaxSpinsBeforeThinLockInflation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongPauseLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongGCLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_insert_rval(const_iterator, value_type&&) [with _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]', inlined from 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1391:30, inlined from 'void art::InternTable::Table::AddInternStrings(art::InternTable::UnorderedSet&&, bool)' at art/runtime/intern_table-inl.h:71:17, inlined from 'size_t art::InternTable::AddTableFromMemory(const uint8_t*, const Visitor&, bool) [with Visitor = art::gc::space::ImageSpace::Loader::RelocateInPlace(art::ImageHeader&, uint8_t*, art::gc::accounting::ContinuousSpaceBitmap*, const art::OatFile*, std::string*)::]' at art/runtime/intern_table-inl.h:52:39, inlined from 'static bool art::gc::space::ImageSpace::Loader::RelocateInPlace(art::ImageHeader&, uint8_t*, art::gc::accounting::ContinuousSpaceBitmap*, const art::OatFile*, std::string*) [with art::PointerSize kPointerSize = art::PointerSize::k32]' at art/runtime/gc/space/image_space.cc:1344:45: /usr/include/c++/13.2.1/bits/vector.tcc:370:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 370 | _M_insert_aux(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc:372:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 372 | _M_realloc_insert(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ThreadSuspendTimeout' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpGCPerformanceOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoBeforeGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoAfterGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpJITInfoOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'IgnoreMaxFootprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LowMemoryMode' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseTLAB' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'EnableHSpaceCompactForOOM' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseJitCompilation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpNativeStackOnSigQuit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MadviseRandomAccess' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCompileThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITWarmupThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITOsrThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object_array-inl.h:30, from art/runtime/mirror/iftable-inl.h:22, from art/runtime/mirror/class-inl.h:34, from art/runtime/mirror/object-inl.h:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPriorityThreadWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITInvokeTransitionWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPoolThreadPthreadPriority' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheInitialCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheMaxCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HSpaceCompactForOOMMinIntervalsMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'PropertiesList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Relocate' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageDex2Oat' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Interpret' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GcOption' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectSpace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BackgroundGc' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DisableExplicitGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoSigChain' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForceNativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verbose' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackDumpLockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFile' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFileSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceStreaming' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileClock' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileSaverOpts' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Compiler' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageCompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verify' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'TargetSdkVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HiddenApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CorePlatformApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ZygoteMaxFailedBoots' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoDexFileFallback' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CpuAbiList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Fingerprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Experimental' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentLib' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Plugins' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathDexList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageInstructionSet' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerCallbacksPtr' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookIsSensitiveThread' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookVfprintf' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookExit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookAbort' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'SlowDebug' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GlobalRefAllocStackTraceLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseStderrLogger' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'OnlyUseSystemOatFiles' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'VerifierLoggingThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageSpaceLoadingOrder' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FastClassNotFoundException' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/verifier/method_verifier.h:30: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/jit/profile_saver.h:23: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/method_reference.h:22, from art/runtime/verifier/method_verifier.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/bit_vector-inl.h:20, from art/runtime/oat_file_manager.cc:29: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/arch/arm64/registers_arm64.cc In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/ti/agent.cc: In member function 'std::unique_ptr art::ti::AgentSpec::DoDlOpen(JNIEnv*, jobject, art::ti::LoadError*, std::string*)': art/runtime/ti/agent.cc:123:46: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive] 123 | char* bionic_dlerror_msg = bionic_dlerror(); | ~~~~~~~~~~~~~~^~ | | | const char* In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/runtime/verifier/method_verifier.h:28, from art/runtime/verifier/reg_type-inl.h:24: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/hidden_api.h:21: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/runtime_options.h:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/arch/mips/instruction_set_features_mips.cc In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bitset:49, from art/runtime/thread.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80, from art/runtime/ti/agent.h:23: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/verifier/method_verifier.h:30: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/class-inl.h:20: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/list:62, from art/runtime/class_linker.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/method_reference.h:22, from art/runtime/verifier/method_verifier.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/type_reference.h:25, from art/libprofile/./profile/profile_compilation_info.h:35, from art/runtime/jit/profile_saver.h:24: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ host C++: libart <= art/runtime/arch/mips/registers_mips.cc art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/arch/mips/registers_mips.h:22, from art/runtime/arch/mips/registers_mips.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetType(art::ObjPtr) [with bool kTransactionActive = false]': art/runtime/mirror/field-inl.h:89:35: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/native/java_lang_Class.cc:286:65: required from here art/runtime/mirror/field-inl.h:104:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:104:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 104 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, type_), type); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h: In instantiation of 'void art::mirror::Field::SetDeclaringClass(art::ObjPtr) [with bool kTransactionActive = false]': art/runtime/mirror/field-inl.h:90:45: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/native/java_lang_Class.cc:286:65: required from here art/runtime/mirror/field-inl.h:99:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field-inl.h:99:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 99 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Field, declaring_class_), c); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetAccessFlags(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:91:42: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/native/java_lang_Class.cc:286:65: required from here art/runtime/mirror/field.h:98:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:98:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_), flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetDexFieldIndex(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:92:44: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/native/java_lang_Class.cc:286:65: required from here art/runtime/mirror/field.h:103:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:103:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_), idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In instantiation of 'void art::mirror::Field::SetOffset(uint32_t) [with bool kTransactionActive = false; uint32_t = unsigned int]': art/runtime/mirror/field-inl.h:93:37: required from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k32; bool kTransactionActive = false]' art/runtime/native/java_lang_Class.cc:286:65: required from here art/runtime/mirror/field.h:108:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:108:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 108 | SetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_), offset); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/arch/mips64/instruction_set_features_mips64.cc art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/runtime/reference_table.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/ti/agent.cc:26: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/indirect_reference_table.h:32, from art/runtime/jni/java_vm_ext.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/reference_table.cc:26: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/reference_table.h:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/runtime/verifier/register_line.h:29: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/runtime/verifier/register_line.h:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/arch/instruction_set_features.h:24, from art/runtime/arch/mips/instruction_set_features_mips.h:22, from art/runtime/arch/mips/instruction_set_features_mips.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/list:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/runtime.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' host C++: libart <= art/runtime/arch/mips64/registers_mips64.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/verifier/reg_type-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31, from art/runtime/well_known_classes.cc:27: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/arch/x86/instruction_set_features_x86.cc In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/set:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/arch/instruction_set_features.h:24, from art/runtime/arch/mips64/instruction_set_features_mips64.h:20, from art/runtime/arch/mips64/instruction_set_features_mips64.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/arch/mips64/registers_mips64.h:22, from art/runtime/arch/mips64/registers_mips64.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack_map.cc: In lambda function: art/runtime/stack_map.cc:249:27: warning: declaration of 'indent1' shadows a previous local [-Wshadow] 249 | ScopedIndentation indent1(vios); | ^~~~~~~ art/runtime/stack_map.cc:236:21: note: shadowed declaration is here 236 | ScopedIndentation indent1(vios); | ^~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libartbase/base/logging.h:22, from art/runtime/arch/mips64/instruction_set_features_mips64.cc:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/parsed_options.cc: In member function 'bool art::ParsedOptions::DoParse(const art::RuntimeOptions&, bool, art::RuntimeArgumentMap*)': art/runtime/parsed_options.cc:580:12: warning: invalid conversion from 'void (*)()' to 'const void*' [-fpermissive] 580 | dladdr(art_sigsegv_fault, &libart_so_dl_info); | ^~~~~~~~~~~~~~~~~ | | | void (*)() In file included from art/runtime/ti/agent.h:20, from art/cmdline/cmdline_types.h:41: /usr/include/dlfcn.h:34:12: note: initializing argument 1 of 'int dladdr(const void*, Dl_info*)' 34 | int dladdr(const void *, Dl_info *); | ^~~~~~~~~~~~ art/runtime/parsed_options.cc:584:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 584 | char *path_to_jars = "/../java/dex/art/"; | ^~~~~~~~~~~~~~~~~~~ art/runtime/parsed_options.cc:585:41: warning: invalid conversion from 'void*' to 'char*' [-fpermissive] 585 | char *libart_so_full_path = malloc(strlen(libart_so_dl_info.dli_fname) + strlen(path_to_jars) + 1); // overallocating but that's fine | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void* art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/verifier/method_verifier.h:30, from art/runtime/verifier/method_verifier-inl.h:20, from art/runtime/verifier/register_line.cc:22: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from /usr/include/c++/13.2.1/bitset:52: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/method_reference.h:22, from art/runtime/verifier/method_verifier.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/arch/x86/registers_x86.cc In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {art::debug::ElfCompilationUnit}; _Tp = art::debug::ElfCompilationUnit; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = art::debug::ElfCompilationUnit; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'void art::debug::WriteDebugInfo(art::ElfBuilder*, const DebugInfo&) [with ElfTypes = art::ElfTypes64]' at art/compiler/debug/elf_debug_writer.cc:79:32: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]', inlined from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator >; _Compare = art::debug::WriteDebugInfo(art::ElfBuilder*, const DebugInfo&)::]' at /usr/include/c++/13.2.1/bits/stl_algo.h:4894:18, inlined from 'void art::debug::WriteDebugInfo(art::ElfBuilder*, const DebugInfo&) [with ElfTypes = art::ElfTypes64]' at art/compiler/debug/elf_debug_writer.cc:81:12: /usr/include/c++/13.2.1/bits/stl_algo.h:1947:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1947 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1948 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1949 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter(art::ElfBuilder*, const DebugInfo&):: >]' at /usr/include/c++/13.2.1/bits/stl_algo.h:1950:31, inlined from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator >; _Compare = art::debug::WriteDebugInfo(art::ElfBuilder*, const DebugInfo&)::]' at /usr/include/c++/13.2.1/bits/stl_algo.h:4894:18, inlined from 'void art::debug::WriteDebugInfo(art::ElfBuilder*, const DebugInfo&) [with ElfTypes = art::ElfTypes64]' at art/compiler/debug/elf_debug_writer.cc:81:12: /usr/include/c++/13.2.1/bits/stl_algo.h:1859:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1859 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h:1864:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1864 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/class_accessor-inl.h:28, from art/runtime/vdex_file.cc:34: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/stl_tree.h:63, from /usr/include/c++/13.2.1/map:62, from art/runtime/verifier/verifier_deps.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:117:56: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/arch/instruction_set_features.h:24, from art/runtime/arch/x86/instruction_set_features_x86.h:20, from art/runtime/arch/x86/instruction_set_features_x86.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/arch/x86/registers_x86.h:22, from art/runtime/arch/x86/registers_x86.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ host C++: libart <= art/runtime/arch/x86_64/registers_x86_64.cc art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/reg_type.h:27, from art/runtime/verifier/reg_type-inl.h:20: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bitset:49, from art/runtime/trace.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/arch/x86_64/registers_x86_64.h:22, from art/runtime/arch/x86_64/registers_x86_64.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/verifier/reg_type-inl.h:25: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In function 'void art::interpreter::GetResourceAsStream(art::Thread*, art::ShadowFrame*, art::JValue*, size_t)', inlined from 'static void art::interpreter::UnstartedRuntime::UnstartedClassLoaderGetResourceAsStream(art::Thread*, art::ShadowFrame*, art::JValue*, size_t)' at art/runtime/interpreter/unstarted_runtime.cc:681:22: art/runtime/interpreter/unstarted_runtime.cc:613:49: warning: 'map_size' may be used uninitialized [-Wmaybe-uninitialized] 613 | Handle h_array(hs.NewHandle(mirror::ByteArray::Alloc(self, map_size))); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/unstarted_runtime.cc: In static member function 'static void art::interpreter::UnstartedRuntime::UnstartedClassLoaderGetResourceAsStream(art::Thread*, art::ShadowFrame*, art::JValue*, size_t)': art/runtime/interpreter/unstarted_runtime.cc:590:10: note: 'map_size' was declared here 590 | size_t map_size; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/entrypoints/entrypoint_utils.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= art/runtime/entrypoints/jni/jni_entrypoints.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/scoped_thread_state_change-inl.h:28: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 36 | ALWAYS_INLINE static bool DecodeTable(BitTable& table, BitMemoryReader& reader) { | ^~~~~~~~~~~ art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/stack_map.cc:36:27: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/map:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ host C++: libart <= art/runtime/entrypoints/math_entrypoints.cc art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/native/java_lang_Class.cc:135:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 135 | ALWAYS_INLINE static bool IsDiscoverable(bool public_only, | ^~~~~~~~~~~~~~ art/runtime/native/java_lang_Class.cc:123:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 123 | ALWAYS_INLINE static bool ShouldDenyAccessToMember(T* member, Thread* self) | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/native/java_lang_Class.cc:123:27: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/native/java_lang_Class.cc:135:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 135 | ALWAYS_INLINE static bool IsDiscoverable(bool public_only, | ^~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/entrypoints/entrypoint_utils.h:24, from art/runtime/entrypoints/entrypoint_utils.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_alloc_entrypoints.cc art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/array_ref.h:23, from art/runtime/vdex_file.h:23: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.cc: In function 'art::mirror::{anonymous}::AccessModeTemplate art::mirror::{anonymous}::GetAccessModeTemplate(art::mirror::VarHandle::AccessMode)': art/runtime/mirror/var_handle.cc:172:1: warning: control reaches end of non-void function [-Wreturn-type] 172 | } | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/verifier/reg_type_cache-inl.h:20: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/runtime/native/java_lang_Class.cc:31: art/runtime/hidden_api.h: In function 'bool art::hiddenapi::ShouldDenyAccessToMember(T*, const std::function&, AccessMethod) [with T = art::ArtMethod]': art/runtime/hidden_api.h:468:1: warning: control reaches end of non-void function [-Wreturn-type] 468 | } | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/entrypoints/entrypoint_utils.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/entrypoints/entrypoint_utils.h:24, from art/runtime/entrypoints/entrypoint_utils-inl.h:20, from art/runtime/entrypoints/math_entrypoints.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object.h:24, from art/runtime/oat_file.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/array-inl.h:26, from art/runtime/mirror/object-inl.h:22: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_cast_entrypoints.cc art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/art_method.h:30, from art/runtime/art_method-inl.h:20, from art/runtime/entrypoints/jni/jni_entrypoints.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/var_handle.cc: In static member function 'static const char* art::mirror::VarHandle::GetReturnTypeDescriptor(const char*)': art/runtime/mirror/var_handle.cc:1618:1: warning: control reaches end of non-void function [-Wreturn-type] 1618 | } | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/reflection.cc:19: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/runtime.h:38, from art/runtime/mirror/array-inl.h:27: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {Elf64_Shdr}; _Tp = Elf64_Shdr; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = Elf64_Shdr; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'off_t art::ElfBuilder::End() [with ElfTypes = art::ElfTypes64]' at art/libelffile/elf/elf_builder.h:553:20, inlined from 'std::vector art::debug::MakeMiniDebugInfoInternal(art::InstructionSet, const art::InstructionSetFeatures*, typename ElfTypes::Addr, size_t, typename ElfTypes::Addr, size_t, const DebugInfo&) [with ElfTypes = art::ElfTypes64]' at art/compiler/debug/elf_debug_writer.cc:139:15, inlined from 'std::vector art::debug::MakeMiniDebugInfo(art::InstructionSet, const art::InstructionSetFeatures*, uint64_t, size_t, uint64_t, size_t, const DebugInfo&)' at art/compiler/debug/elf_debug_writer.cc:162:60: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Elf64_Shdr; _Alloc = std::allocator]', inlined from 'off_t art::ElfBuilder::End() [with ElfTypes = art::ElfTypes64]' at art/libelffile/elf/elf_builder.h:555:22, inlined from 'std::vector art::debug::MakeMiniDebugInfoInternal(art::InstructionSet, const art::InstructionSetFeatures*, typename ElfTypes::Addr, size_t, typename ElfTypes::Addr, size_t, const DebugInfo&) [with ElfTypes = art::ElfTypes64]' at art/compiler/debug/elf_debug_writer.cc:139:15, inlined from 'std::vector art::debug::MakeMiniDebugInfo(art::InstructionSet, const art::InstructionSetFeatures*, uint64_t, size_t, uint64_t, size_t, const DebugInfo&)' at art/compiler/debug/elf_debug_writer.cc:162:60: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' host C++: libart <= art/runtime/entrypoints/quick/quick_deoptimization_entrypoints.cc In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/runtime/entrypoints/entrypoint_utils-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/hidden_api.h: In function 'bool art::hiddenapi::ShouldDenyAccessToMember(T*, const std::function&, AccessMethod) [with T = art::ArtField]': art/runtime/hidden_api.h:468:1: warning: control reaches end of non-void function [-Wreturn-type] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/intern_table.h:24, from art/runtime/intern_table-inl.h:20, from art/runtime/runtime.cc:95: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/entrypoints/quick/quick_alloc_entrypoints.h:20, from art/runtime/entrypoints/quick/quick_alloc_entrypoints.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ host C++: libart <= art/runtime/entrypoints/quick/quick_dexcache_entrypoints.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/signal_catcher.cc:41: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_entrypoints_enum.cc art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/mirror/class.h:29, from art/runtime/mirror/class-inl.h:20, from art/runtime/entrypoints/quick/quick_cast_entrypoints.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/mirror/object.h:20, from art/runtime/mirror/class.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/runtime/entrypoints/quick/quick_alloc_entrypoints.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_field_entrypoints.cc art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/logging.h:22, from art/runtime/entrypoints/quick/quick_deoptimization_entrypoints.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:33, from art/runtime/entrypoints/quick/quick_deoptimization_entrypoints.cc:18: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_fillarray_entrypoints.cc art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/class_verifier.h:22: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread-inl.h:20, from art/runtime/entrypoints/quick/callee_save_frame.h:25, from art/runtime/entrypoints/quick/quick_deoptimization_entrypoints.cc:19: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host C++: libart <= art/runtime/entrypoints/quick/quick_jni_entrypoints.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/runtime/base/mutex.h:26: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/scoped_thread_state_change-inl.h:28, from art/runtime/thread_list.cc:47: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:30, from art/runtime/art_method-inl.h:20, from art/runtime/entrypoints/quick/quick_dexcache_entrypoints.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/jit/profile_saver.h:22, from art/runtime/runtime.cc:99: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/class_reference.h:23, from art/runtime/compiler_callbacks.h:21, from art/runtime/runtime.cc:77: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_lock_entrypoints.cc In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/mirror/object-inl.h:37, from art/runtime/mirror/object_array-inl.h:29, from art/runtime/mirror/iftable-inl.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/entrypoints/quick/quick_entrypoints.h:22, from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:20, from art/runtime/entrypoints/quick/quick_entrypoints_enum.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/runtime/art_method.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/variant_map.h:25, from art/runtime/runtime_options.h:26: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/art_field.h:22, from art/runtime/art_field-inl.h:20, from art/runtime/entrypoints/quick/quick_field_entrypoints.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from art/runtime/art_field.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_math_entrypoints.cc art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/type_reference.h:25, from art/libprofile/./profile/profile_compilation_info.h:35, from art/runtime/jit/profile_saver.h:24: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/oat_file.h:38, from art/runtime/class_loader_context.h:28, from art/runtime/vdex_file.cc:32: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:30, from art/runtime/art_method-inl.h:20, from art/runtime/entrypoints/quick/quick_jni_entrypoints.cc:19: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/entrypoints/quick/callee_save_frame.h:20, from art/runtime/entrypoints/quick/quick_lock_entrypoints.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/entrypoints/quick/quick_math_entrypoints.cc:21: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 21 | #pragma clang diagnostic push | art/runtime/entrypoints/quick/quick_math_entrypoints.cc:22: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 22 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/runtime/entrypoints/quick/quick_math_entrypoints.cc:68: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 68 | #pragma clang diagnostic pop | libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_thread_entrypoints.cc libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/entrypoints/quick/callee_save_frame.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/art_method.h:30, from art/runtime/art_method-inl.h:20, from art/runtime/entrypoints/quick/quick_fillarray_entrypoints.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/thread-inl.h:20, from art/runtime/entrypoints/quick/callee_save_frame.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/method_verifier.h:24: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_throw_entrypoints.cc In file included from art/runtime/mirror/class-inl.h:33, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/read_barrier.h:25, from art/runtime/interpreter/shadow_frame.h:27, from art/runtime/mirror/var_handle.h:21: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/indirect_reference_table.h:32, from art/runtime/jni/java_vm_ext.h:24, from art/runtime/scoped_thread_state_change.cc:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/entrypoints/quick/callee_save_frame.h:20, from art/runtime/entrypoints/quick/quick_thread_entrypoints.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/base/callee_save_type.h_operator_out.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22, from art/runtime/runtime.cc:105: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/quick_exception_handler.cc:32: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from /usr/include/c++/13.2.1/bitset:52: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:31: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/entrypoints/quick/callee_save_frame.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/base/locks.h_operator_out.cc art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-inl.h:20, from art/runtime/entrypoints/quick/callee_save_frame.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:30, from art/runtime/art_method-inl.h:20, from art/runtime/entrypoints/quick/quick_throw_entrypoints.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/entrypoints/jni/jni_entrypoints.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex-inl.h:26, from art/runtime/thread-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:30, from art/runtime/art_method-inl.h:20, from art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/class_loader_context.h_operator_out.cc art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/arena_object.h:20: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/class_status.h_operator_out.cc In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/array_ref.h:23, from art/runtime/verifier/verifier_deps.h:24: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/reflection.cc:33: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/base/locks.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator.h:64, from /usr/include/c++/13.2.1/bits/range_access.h:38, from /usr/include/c++/13.2.1/string_view:43, from art/runtime/mirror/class.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/debugger.h_operator_out.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/class_loader_context.h:23, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/class_loader_context.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24, from art/runtime/quick_exception_handler.cc:36: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/mirror/emulated_stack_frame.h:24, from art/runtime/runtime.cc:109: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31, from art/runtime/class_loader_context.h:25: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc_root.h_operator_out.cc art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/libartbase/base/bit_utils.h:23, from art/runtime/mirror/class.h:22: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:28: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/allocator_type.h_operator_out.cc art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/jit/jit.h:20, from art/runtime/jit/jit-inl.h:20, from art/runtime/interpreter/interpreter_common.h:47, from art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:38: art/libartbase/base/histogram-inl.h:234: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 234 | #pragma clang diagnostic push | art/libartbase/base/histogram-inl.h:235: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 235 | #pragma clang diagnostic ignored "-Wfloat-equal" | art/libartbase/base/histogram-inl.h:277: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas] 277 | #pragma clang diagnostic pop | art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Zygote' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Help' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ShowVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath_a' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathLocations' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Image' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CheckJni' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniOptsForceCopy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpProvider' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.def:48:43: warning: declaration of 'art::RuntimeArgumentMap::Key art::RuntimeArgumentMap::JdwpProvider' changes meaning of 'JdwpProvider' [-Wchanges-meaning] 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:109: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ art/runtime/runtime_options.def:48:22: note: used here to mean 'enum class art::JdwpProvider' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:63: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ In file included from art/cmdline/cmdline_types.h:37: art/runtime/jdwp_provider.h:26:12: note: declared here 26 | enum class JdwpProvider { | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryMaximumSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryInitialSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapGrowthLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMinFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMaxFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NonMovingSpaceCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapTargetUtilization' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForegroundHeapGrowthMultiplier' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ParallelGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ConcGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FinalizerTimeoutMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MaxSpinsBeforeThinLockInflation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongPauseLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongGCLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ThreadSuspendTimeout' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpGCPerformanceOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoBeforeGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoAfterGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpJITInfoOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'IgnoreMaxFootprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LowMemoryMode' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseTLAB' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'EnableHSpaceCompactForOOM' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseJitCompilation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpNativeStackOnSigQuit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MadviseRandomAccess' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCompileThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITWarmupThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITOsrThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPriorityThreadWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITInvokeTransitionWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPoolThreadPthreadPriority' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheInitialCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheMaxCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HSpaceCompactForOOMMinIntervalsMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'PropertiesList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Relocate' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageDex2Oat' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Interpret' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GcOption' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectSpace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BackgroundGc' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DisableExplicitGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoSigChain' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForceNativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verbose' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackDumpLockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFile' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFileSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceStreaming' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileClock' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileSaverOpts' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Compiler' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageCompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verify' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'TargetSdkVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HiddenApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CorePlatformApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ZygoteMaxFailedBoots' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoDexFileFallback' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CpuAbiList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Fingerprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/class-inl.h:23: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Experimental' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentLib' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Plugins' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathDexList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageInstructionSet' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerCallbacksPtr' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookIsSensitiveThread' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookVfprintf' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookExit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookAbort' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'SlowDebug' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GlobalRefAllocStackTraceLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseStderrLogger' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'OnlyUseSystemOatFiles' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'VerifierLoggingThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageSpaceLoadingOrder' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FastClassNotFoundException' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/allocator/rosalloc.h_operator_out.cc art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/quick_exception_handler.cc:37: art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::CallsiteTypeOffset()': art/runtime/mirror/emulated_stack_frame.h:70:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 70 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, callsite_type_)); art/runtime/mirror/emulated_stack_frame.h:70:25: note: in expansion of macro 'OFFSETOF_MEMBER' 70 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, callsite_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::TypeOffset()': art/runtime/mirror/emulated_stack_frame.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, type_)); art/runtime/mirror/emulated_stack_frame.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::ReferencesOffset()': art/runtime/mirror/emulated_stack_frame.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, references_)); art/runtime/mirror/emulated_stack_frame.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, references_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/emulated_stack_frame.h: In static member function 'static art::MemberOffset art::mirror::EmulatedStackFrame::StackFrameOffset()': art/runtime/mirror/emulated_stack_frame.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::EmulatedStackFrame' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, stack_frame_)); art/runtime/mirror/emulated_stack_frame.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(EmulatedStackFrame, stack_frame_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetDexFieldIndex()': art/runtime/mirror/field.h:42:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:42:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 42 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, dex_field_index_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'uint32_t art::mirror::Field::GetAccessFlags()': art/runtime/mirror/field.h:48:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:48:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/field.h: In member function 'int32_t art::mirror::Field::GetOffset()': art/runtime/mirror/field.h:68:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Field' is conditionally-supported [-Winvalid-offsetof] 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/field.h:68:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 68 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Field, offset_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.h: In member function 'int32_t art::mirror::StackTraceElement::GetLineNumber()': art/runtime/mirror/stack_trace_element.h:39:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 39 | return GetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.h:39:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 39 | return GetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::VarTypeOffset()': art/runtime/mirror/var_handle.h:163:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); art/runtime/mirror/var_handle.h:163:25: note: in expansion of macro 'OFFSETOF_MEMBER' 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType0Offset()': art/runtime/mirror/var_handle.h:167:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); art/runtime/mirror/var_handle.h:167:25: note: in expansion of macro 'OFFSETOF_MEMBER' 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType1Offset()': art/runtime/mirror/var_handle.h:171:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); art/runtime/mirror/var_handle.h:171:25: note: in expansion of macro 'OFFSETOF_MEMBER' 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::AccessModesBitMaskOffset()': art/runtime/mirror/var_handle.h:175:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); art/runtime/mirror/var_handle.h:175:25: note: in expansion of macro 'OFFSETOF_MEMBER' 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::FieldVarHandle::ArtFieldOffset()': art/runtime/mirror/var_handle.h:202:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::FieldVarHandle' is conditionally-supported [-Winvalid-offsetof] 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); art/runtime/mirror/var_handle.h:202:25: note: in expansion of macro 'OFFSETOF_MEMBER' 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteArrayViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:242:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteArrayViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:242:25: note: in expansion of macro 'OFFSETOF_MEMBER' 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteBufferViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:282:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteBufferViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:282:25: note: in expansion of macro 'OFFSETOF_MEMBER' 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/collector_type.h_operator_out.cc art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/class_linker.h:29, from art/runtime/debugger.h:31, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/debugger.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/register_line.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80, from art/runtime/base/locks.h:23: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/collector/gc_type.h_operator_out.cc art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/debugger.h:39: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/verifier/reg_type_cache.h:28, from art/runtime/verifier/method_verifier.h:35: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/gc_root.h:20, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc_root.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/atomic.h:27, from art/libartbase/base/allocator.h:22, from art/runtime/gc/allocator/rosalloc.h:31, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/allocator/rosalloc.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/entrypoints/quick/quick_jni_entrypoints.cc:17: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/base/mutex.h:33, from art/runtime/gc/allocator/rosalloc.h:34: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/heap.h_operator_out.cc art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/allocator/rosalloc.h:36: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from art/libdexfile/dex/dex_file_types.h:22, from art/runtime/art_field.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/class_accessor-inl.h:28, from art/runtime/verifier/class_verifier.cc:27: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libdexfile/dex/class_reference.h:23, from art/runtime/compiler_callbacks.h:21, from art/runtime/verifier/class_verifier.cc:26: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/common_dex_operations.h:39, from art/runtime/interpreter/interpreter_common.h:39: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/space/region_space.h_operator_out.cc libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/runtime/verifier/method_verifier.h:28, from art/runtime/verifier/method_verifier-inl.h:20, from art/runtime/verifier/class_verifier.cc:32: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/stack.cc:27: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/space/space.h_operator_out.cc In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/heap.h:28, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/heap.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/gc/heap.h:29: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:34: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In static member function 'static void art::mirror::DexCache::SetNativePairPtrSize(std::atomic >*, size_t, art::mirror::NativeDexCachePair, art::PointerSize) [with T = art::ArtField]', inlined from 'void art::mirror::DexCache::SetResolvedField(uint32_t, art::ArtField*, art::PointerSize)' at art/runtime/mirror/dex_cache-inl.h:256:23, inlined from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = true]' at art/runtime/mirror/field-inl.h:86:45: art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 329 | AtomicStoreRelease16B(&array[idx], v); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/gc/space/large_object_space.h:25, from art/runtime/gc/heap.h:39: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/weak_root_state.h_operator_out.cc art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:20, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/space/region_space.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/reference_table.h:27: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/array-inl.h:26: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/image.h_operator_out.cc In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/runtime/gc/space/region_space.h:21: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In static member function 'static void art::mirror::DexCache::SetNativePairPtrSize(std::atomic >*, size_t, art::mirror::NativeDexCachePair, art::PointerSize) [with T = art::ArtField]', inlined from 'void art::mirror::DexCache::SetResolvedField(uint32_t, art::ArtField*, art::PointerSize)' at art/runtime/mirror/dex_cache-inl.h:256:23, inlined from 'static art::ObjPtr art::mirror::Field::CreateFromArtField(art::Thread*, art::ArtField*, bool) [with art::PointerSize kPointerSize = art::PointerSize::k64; bool kTransactionActive = false]' at art/runtime/mirror/field-inl.h:86:45: art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 329 | AtomicStoreRelease16B(&array[idx], v); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/class_loader_context.h_operator_out.cc:1: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/runtime/interpreter/interpreter.h:21, from art/runtime/entrypoints/quick/quick_deoptimization_entrypoints.cc:20: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/libartbase/base/logging.h:19: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/instrumentation.h_operator_out.cc In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/reg_type.h:31: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/intern_table.h:24, from art/runtime/transaction.cc:25: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/libdexfile/dex/dex_file_types.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:117:56: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/gc/space/space.h:23, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/space/space.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/gc/space/space.h:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/hashtable_policy.h:36, from /usr/include/c++/13.2.1/bits/hashtable.h:35, from /usr/include/c++/13.2.1/bits/unordered_map.h:33, from /usr/include/c++/13.2.1/unordered_map:41, from /usr/include/c++/13.2.1/functional:63, from libbase/include/android-base/logging.h:60, from art/runtime/art_method.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/indirect_reference_table.h_operator_out.cc In file included from art/runtime/transaction.cc:27: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/parsed_options.h:31, from art/runtime/runtime.cc:153: art/runtime/runtime_options.def: At global scope: art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Zygote' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:37:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 37 | RUNTIME_OPTIONS_KEY (Unit, Zygote) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Help' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:38:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 38 | RUNTIME_OPTIONS_KEY (Unit, Help) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ShowVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:39:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 39 | RUNTIME_OPTIONS_KEY (Unit, ShowVersion) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:40:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 40 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPath) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPath_a' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:41:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 41 | RUNTIME_OPTIONS_KEY (std::string, BootClassPath_a) // -Xbootclasspath/a | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathLocations' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:42:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 42 | RUNTIME_OPTIONS_KEY (ParseStringList<':'>,BootClassPathLocations) // std::vector | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ClassPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:43:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 43 | RUNTIME_OPTIONS_KEY (std::string, ClassPath) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Image' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:44:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 44 | RUNTIME_OPTIONS_KEY (std::string, Image) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CheckJni' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:45:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 45 | RUNTIME_OPTIONS_KEY (Unit, CheckJni) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniOptsForceCopy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:46:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 46 | RUNTIME_OPTIONS_KEY (Unit, JniOptsForceCopy) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:47:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 47 | RUNTIME_OPTIONS_KEY (std::string, JdwpOptions, "") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JdwpProvider' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:48:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.def:48:43: warning: declaration of 'art::RuntimeArgumentMap::Key art::RuntimeArgumentMap::JdwpProvider' changes meaning of 'JdwpProvider' [-Wchanges-meaning] 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:109: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ art/runtime/runtime_options.def:48:22: note: used here to mean 'enum class art::JdwpProvider' 48 | RUNTIME_OPTIONS_KEY (JdwpProvider, JdwpProvider, JdwpProvider::kUnset) | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:63: note: in definition of macro 'RUNTIME_OPTIONS_KEY' 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~ In file included from art/runtime/runtime.h:40: art/runtime/jdwp_provider.h:26:12: note: declared here 26 | enum class JdwpProvider { | ^~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryMaximumSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:49:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 49 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryMaximumSize, gc::Heap::kDefaultMaximumSize) // -Xmx | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MemoryInitialSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:50:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 50 | RUNTIME_OPTIONS_KEY (MemoryKiB, MemoryInitialSize, gc::Heap::kDefaultInitialSize) // -Xms | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapGrowthLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:51:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 51 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapGrowthLimit) // Default is 0 for unlimited | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMinFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:52:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 52 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMinFree, gc::Heap::kDefaultMinFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapMaxFree' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:53:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 53 | RUNTIME_OPTIONS_KEY (MemoryKiB, HeapMaxFree, gc::Heap::kDefaultMaxFree) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NonMovingSpaceCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:54:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 54 | RUNTIME_OPTIONS_KEY (MemoryKiB, NonMovingSpaceCapacity, gc::Heap::kDefaultNonMovingSpaceCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HeapTargetUtilization' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:55:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 55 | RUNTIME_OPTIONS_KEY (double, HeapTargetUtilization, gc::Heap::kDefaultTargetUtilization) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForegroundHeapGrowthMultiplier' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:56:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 56 | RUNTIME_OPTIONS_KEY (double, ForegroundHeapGrowthMultiplier, gc::Heap::kDefaultHeapGrowthMultiplier) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ParallelGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:57:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 57 | RUNTIME_OPTIONS_KEY (unsigned int, ParallelGCThreads, 0u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ConcGCThreads' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:58:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 58 | RUNTIME_OPTIONS_KEY (unsigned int, ConcGCThreads) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FinalizerTimeoutMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:59:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 59 | RUNTIME_OPTIONS_KEY (unsigned int, FinalizerTimeoutMs, 10000u) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:60:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 60 | RUNTIME_OPTIONS_KEY (Memory<1>, StackSize) // -Xss | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MaxSpinsBeforeThinLockInflation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:61:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 61 | RUNTIME_OPTIONS_KEY (unsigned int, MaxSpinsBeforeThinLockInflation,Monitor::kDefaultMaxSpinsBeforeThinLockInflation) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongPauseLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:62:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 62 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LongGCLogThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:64:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 64 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ThreadSuspendTimeout' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:66:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 66 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpGCPerformanceOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:68:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 68 | RUNTIME_OPTIONS_KEY (Unit, DumpGCPerformanceOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoBeforeGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:69:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 69 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoBeforeGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpRegionInfoAfterGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:70:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 70 | RUNTIME_OPTIONS_KEY (Unit, DumpRegionInfoAfterGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpJITInfoOnShutdown' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:71:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 71 | RUNTIME_OPTIONS_KEY (Unit, DumpJITInfoOnShutdown) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'IgnoreMaxFootprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:72:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 72 | RUNTIME_OPTIONS_KEY (Unit, IgnoreMaxFootprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LowMemoryMode' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:73:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 73 | RUNTIME_OPTIONS_KEY (Unit, LowMemoryMode) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseTLAB' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:74:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 74 | RUNTIME_OPTIONS_KEY (bool, UseTLAB, (kUseTlab || kUseReadBarrier)) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'EnableHSpaceCompactForOOM' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:75:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 75 | RUNTIME_OPTIONS_KEY (bool, EnableHSpaceCompactForOOM, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseJitCompilation' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:76:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 76 | RUNTIME_OPTIONS_KEY (bool, UseJitCompilation, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DumpNativeStackOnSigQuit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:77:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 77 | RUNTIME_OPTIONS_KEY (bool, DumpNativeStackOnSigQuit, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MadviseRandomAccess' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:78:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 78 | RUNTIME_OPTIONS_KEY (bool, MadviseRandomAccess, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCompileThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:79:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 79 | RUNTIME_OPTIONS_KEY (unsigned int, JITCompileThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITWarmupThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:80:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 80 | RUNTIME_OPTIONS_KEY (unsigned int, JITWarmupThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITOsrThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:81:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 81 | RUNTIME_OPTIONS_KEY (unsigned int, JITOsrThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPriorityThreadWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:82:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 82 | RUNTIME_OPTIONS_KEY (unsigned int, JITPriorityThreadWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITInvokeTransitionWeight' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:83:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 83 | RUNTIME_OPTIONS_KEY (unsigned int, JITInvokeTransitionWeight) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITPoolThreadPthreadPriority' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:84:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 84 | RUNTIME_OPTIONS_KEY (int, JITPoolThreadPthreadPriority, jit::kJitPoolThreadPthreadDefaultPriority) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheInitialCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:85:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 85 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheInitialCapacity, jit::JitCodeCache::kInitialCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JITCodeCacheMaxCapacity' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:86:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 86 | RUNTIME_OPTIONS_KEY (MemoryKiB, JITCodeCacheMaxCapacity, jit::JitCodeCache::kMaxCapacity) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HSpaceCompactForOOMMinIntervalsMs' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:87:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 87 | RUNTIME_OPTIONS_KEY (MillisecondsToNanoseconds, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'PropertiesList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:90:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 90 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'JniTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:92:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 92 | RUNTIME_OPTIONS_KEY (std::string, JniTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Relocate' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:93:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 93 | RUNTIME_OPTIONS_KEY (bool, Relocate, kDefaultMustRelocate) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageDex2Oat' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:94:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 94 | RUNTIME_OPTIONS_KEY (bool, ImageDex2Oat, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Interpret' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:95:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 95 | RUNTIME_OPTIONS_KEY (bool, Interpret, false) // -Xint | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GcOption' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:97:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 97 | RUNTIME_OPTIONS_KEY (XGcOption, GcOption) // -Xgc: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectSpace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:98:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 98 | RUNTIME_OPTIONS_KEY (gc::space::LargeObjectSpaceType, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LargeObjectThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:100:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 100 | RUNTIME_OPTIONS_KEY (Memory<1>, LargeObjectThreshold, gc::Heap::kDefaultLargeObjectThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BackgroundGc' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:101:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 101 | RUNTIME_OPTIONS_KEY (BackgroundGcOption, BackgroundGc) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'DisableExplicitGC' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:103:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 103 | RUNTIME_OPTIONS_KEY (Unit, DisableExplicitGC) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoSigChain' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:104:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 104 | RUNTIME_OPTIONS_KEY (Unit, NoSigChain) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ForceNativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:105:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 105 | RUNTIME_OPTIONS_KEY (Unit, ForceNativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verbose' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:106:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 106 | RUNTIME_OPTIONS_KEY (LogVerbosity, Verbose) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'LockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:107:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 107 | RUNTIME_OPTIONS_KEY (unsigned int, LockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'StackDumpLockProfThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:108:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 108 | RUNTIME_OPTIONS_KEY (unsigned int, StackDumpLockProfThreshold) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTrace' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:109:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 109 | RUNTIME_OPTIONS_KEY (Unit, MethodTrace) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFile' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:110:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 110 | RUNTIME_OPTIONS_KEY (std::string, MethodTraceFile, "/data/misc/trace/method-trace-file.bin") | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceFileSize' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:111:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 111 | RUNTIME_OPTIONS_KEY (unsigned int, MethodTraceFileSize, 10 * MB) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'MethodTraceStreaming' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:112:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 112 | RUNTIME_OPTIONS_KEY (Unit, MethodTraceStreaming) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileClock' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:113:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 113 | RUNTIME_OPTIONS_KEY (TraceClockSource, ProfileClock, kDefaultTraceClockSource) // -Xprofile: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ProfileSaverOpts' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:114:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 114 | RUNTIME_OPTIONS_KEY (ProfileSaverOptions, ProfileSaverOpts) // -Xjitsaveprofilinginfo, -Xps-* | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Compiler' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:115:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 115 | RUNTIME_OPTIONS_KEY (std::string, Compiler) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:116:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 116 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageCompilerOptions' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:118:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 118 | RUNTIME_OPTIONS_KEY (std::vector, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Verify' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:120:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 120 | RUNTIME_OPTIONS_KEY (verifier::VerifyMode, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'TargetSdkVersion' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:122:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 122 | RUNTIME_OPTIONS_KEY (unsigned int, TargetSdkVersion, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HiddenApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:124:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 124 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CorePlatformApiPolicy' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:127:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 127 | RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NativeBridge' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:130:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 130 | RUNTIME_OPTIONS_KEY (std::string, NativeBridge) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ZygoteMaxFailedBoots' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:131:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 131 | RUNTIME_OPTIONS_KEY (unsigned int, ZygoteMaxFailedBoots, 10) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'NoDexFileFallback' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:132:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 132 | RUNTIME_OPTIONS_KEY (Unit, NoDexFileFallback) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CpuAbiList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:133:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 133 | RUNTIME_OPTIONS_KEY (std::string, CpuAbiList) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Fingerprint' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:134:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 134 | RUNTIME_OPTIONS_KEY (std::string, Fingerprint) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Experimental' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:135:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 135 | RUNTIME_OPTIONS_KEY (ExperimentalFlags, Experimental, ExperimentalFlags::kNone) // -Xexperimental:{...} | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentLib' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:136:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 136 | RUNTIME_OPTIONS_KEY (std::list, AgentLib) // -agentlib:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'AgentPath' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:137:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 137 | RUNTIME_OPTIONS_KEY (std::list, AgentPath) // -agentpath:= | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'Plugins' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:138:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 138 | RUNTIME_OPTIONS_KEY (std::vector, Plugins) // -Xplugin: | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'BootClassPathDexList' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:142:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 142 | RUNTIME_OPTIONS_KEY (std::vector>*, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageInstructionSet' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:144:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 144 | RUNTIME_OPTIONS_KEY (InstructionSet, ImageInstructionSet, kRuntimeISA) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'CompilerCallbacksPtr' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:145:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 145 | RUNTIME_OPTIONS_KEY (CompilerCallbacks*, CompilerCallbacksPtr) // TDOO: make unique_ptr | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookIsSensitiveThread' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:146:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 146 | RUNTIME_OPTIONS_KEY (bool (*)(), HookIsSensitiveThread) | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookVfprintf' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:147:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 147 | RUNTIME_OPTIONS_KEY (int32_t (*)(FILE* stream, const char* format, va_list ap), \ | ^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookExit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:151:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 151 | RUNTIME_OPTIONS_KEY (void (*)(int32_t status), \ | ^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'HookAbort' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:155:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 155 | RUNTIME_OPTIONS_KEY (void (*)(), HookAbort, nullptr) | ^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'SlowDebug' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:157:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 157 | RUNTIME_OPTIONS_KEY (bool, SlowDebug, false) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'GlobalRefAllocStackTraceLimit' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:159:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 159 | RUNTIME_OPTIONS_KEY (unsigned int, GlobalRefAllocStackTraceLimit, 0) // 0 = off | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'UseStderrLogger' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:160:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 160 | RUNTIME_OPTIONS_KEY (Unit, UseStderrLogger) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'OnlyUseSystemOatFiles' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:162:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 162 | RUNTIME_OPTIONS_KEY (Unit, OnlyUseSystemOatFiles) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'VerifierLoggingThreshold' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:163:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 163 | RUNTIME_OPTIONS_KEY (unsigned int, VerifierLoggingThreshold, 100) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'ImageSpaceLoadingOrder' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:165:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 165 | RUNTIME_OPTIONS_KEY (gc::space::ImageSpaceLoadingOrder, \ | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: warning: unnecessary parentheses in declaration of 'FastClassNotFoundException' [-Wparentheses] 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ art/runtime/runtime_options.h:75:108: note: remove parentheses 75 | #define RUNTIME_OPTIONS_KEY(Type, Name, ...) static const Key __attribute__((visibility("default"))) (Name); | ^~~~~~ art/runtime/runtime_options.def:169:1: note: in expansion of macro 'RUNTIME_OPTIONS_KEY' 169 | RUNTIME_OPTIONS_KEY (bool, FastClassNotFoundException, true) | ^~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/verifier/class_verifier.cc:81:69: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/jdwp_provider.h_operator_out.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/mirror/object.h:20, from art/runtime/image.h:24, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/image.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/primitive.h:25, from art/runtime/mirror/object.h:23: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41: art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/runtime/instrumentation.h:25, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/instrumentation.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/art_field-inl.h:25: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/quick_exception_handler.h:25: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/instrumentation.h:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/jdwp/jdwp.h_operator_out.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/indirect_reference_table.h:29, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/indirect_reference_table.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/runtime/runtime.cc:177:57: note: in definition of macro 'ASM_DEFINE' 177 | #define ASM_DEFINE(NAME, EXPR) static_assert((NAME) == (EXPR), "Unexpected value of " #NAME); | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:22:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 22 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveAllCalleeSaves)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/reflection.h:23: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/runtime/runtime.cc:177:57: note: in definition of macro 'ASM_DEFINE' 177 | #define ASM_DEFINE(NAME, EXPR) static_assert((NAME) == (EXPR), "Unexpected value of " #NAME); | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:24:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 24 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForClinit)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/runtime/runtime.cc:177:57: note: in definition of macro 'ASM_DEFINE' 177 | #define ASM_DEFINE(NAME, EXPR) static_assert((NAME) == (EXPR), "Unexpected value of " #NAME); | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:26:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 26 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverythingForSuspendCheck)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/runtime/runtime.cc:177:57: note: in definition of macro 'ASM_DEFINE' 177 | #define ASM_DEFINE(NAME, EXPR) static_assert((NAME) == (EXPR), "Unexpected value of " #NAME); | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:28:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 28 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveEverything)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/runtime/runtime.cc:177:57: note: in definition of macro 'ASM_DEFINE' 177 | #define ASM_DEFINE(NAME, EXPR) static_assert((NAME) == (EXPR), "Unexpected value of " #NAME); | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:30:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 30 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsAndArgs)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/runtime.h:430:21: warning: 'offsetof' within non-standard-layout type 'art::Runtime' is conditionally-supported [-Winvalid-offsetof] 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) art/runtime/runtime.cc:177:57: note: in definition of macro 'ASM_DEFINE' 177 | #define ASM_DEFINE(NAME, EXPR) static_assert((NAME) == (EXPR), "Unexpected value of " #NAME); | ^~~~ art/runtime/runtime.h:430:5: note: in expansion of macro 'OFFSETOF_MEMBER' 430 | OFFSETOF_MEMBER(art::Runtime, art::Runtime::callee_save_methods_[static_cast(type)]) | ^~~~~~~~~~~~~~~ art/tools/cpp-define-generator/runtime.def:32:12: note: in expansion of macro 'GetCalleeSaveMethodOffset' 32 | GetCalleeSaveMethodOffset(art::CalleeSaveType::kSaveRefsOnly)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/reflection.cc:477:6: warning: 'always_inline' function might not be inlinable [-Wattributes] 477 | bool InvokeMethodImpl(const ScopedObjectAccessAlreadyRunnable& soa, | ^~~~~~~~~~~~~~~~ art/runtime/reflection.cc:462:6: warning: 'always_inline' function might not be inlinable [-Wattributes] 462 | bool CheckArgsForInvokeMethod(ArtMethod* np_method, | ^~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:759:48: required from 'static constexpr art::ThreadOffset art::Thread::CardTableOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]' art/tools/cpp-define-generator/thread.def:21:1: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadFlagsOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:31:1: required from here art/runtime/thread.h:664:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 664 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:664:9: note: in expansion of macro 'OFFSETOF_MEMBER' 664 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThinLockIdOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:33:1: required from here art/runtime/thread.h:650:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 650 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:650:9: note: in expansion of macro 'OFFSETOF_MEMBER' 650 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::InterpreterCacheOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:35:1: required from here art/runtime/thread.h:1285:55: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 1285 | return ThreadOffset(OFFSETOF_MEMBER(Thread, interpreter_cache_)); art/runtime/thread.h:1285:39: note: in expansion of macro 'OFFSETOF_MEMBER' 1285 | return ThreadOffset(OFFSETOF_MEMBER(Thread, interpreter_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::IsGcMarkingOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:39:1: required from here art/runtime/thread.h:678:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 678 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:678:9: note: in expansion of macro 'OFFSETOF_MEMBER' 678 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::UseMterpOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/tools/cpp-define-generator/thread.def:59:1: required from here art/runtime/thread.h:671:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 671 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:671:9: note: in expansion of macro 'OFFSETOF_MEMBER' 671 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/libdexfile/dex/class_accessor.h:20, from art/runtime/class_linker.h:31: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/debugger.h_operator_out.cc:1: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/jdwp/jdwp_constants.h_operator_out.cc art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/verifier/reg_type.h:27, from art/runtime/verifier/reg_type_cache-inl.h:27: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/class-alloc-inl.h:22, from art/runtime/thread.cc:82: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/lock_word.h_operator_out.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from art/libartbase/arch/instruction_set.h:21: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/interpreter/interpreter_common.h:43: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/entrypoints/quick/quick_lock_entrypoints.cc:19: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/var_handle.h:23: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35, from art/runtime/class_linker-inl.h:23: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/reg_type_cache.h:28, from art/runtime/verifier/method_verifier.h:35: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/runtime/verifier/reg_type_cache.h:26, from art/runtime/verifier/reg_type_cache-inl.h:28: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/class_linker.h:37: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/oat.h_operator_out.cc art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/class_accessor-inl.h:28, from art/runtime/verifier/verifier_deps.cc:28: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/class_reference.h:23, from art/runtime/compiler_callbacks.h:21, from art/runtime/verifier/verifier_deps.cc:27: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.h: In member function 'int32_t art::mirror::StackTraceElement::GetLineNumber()': art/runtime/mirror/stack_trace_element.h:39:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::StackTraceElement' is conditionally-supported [-Winvalid-offsetof] 39 | return GetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/stack_trace_element.h:39:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 39 | return GetField32(OFFSET_OF_OBJECT_MEMBER(StackTraceElement, line_number_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/string:58, from art/libartbase/arch/instruction_set.h:21: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_deoptimization_entrypoints.cc:23: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/object_callbacks.h_operator_out.cc art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/runtime.cc: In member function 'void art::Runtime::AttachAgent(JNIEnv*, const std::string&, jobject)': art/runtime/runtime.cc:1808:55: warning: passing 'art::ti::LoadError' chooses 'int' over 'long unsigned int' [-Wsign-promo] 1808 | LOG(WARNING) << "Agent attach failed (result=" << error << ") : " << error_msg; | ^~~~~ In file included from art/runtime/handle.h:27, from art/runtime/verifier/class_verifier.h:26: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/runtime.cc:1808:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/runtime.cc:1808:55: warning: passing 'art::ti::LoadError' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/runtime.cc:1808:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/runtime.cc:1808:55: warning: passing 'art::ti::LoadError' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/runtime.cc:1808:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/libartbase/base/atomic.h:27, from art/runtime/jdwp/jdwp.h:20, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/jdwp/jdwp.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/base/mutex.h:33, from art/runtime/jdwp/jdwp.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/runtime.cc: In member function 'void art::Runtime::InitNativeMethods()': art/runtime/runtime.cc:1840:14: warning: invalid conversion from 'void (*)()' to 'const void*' [-fpermissive] 1840 | dladdr(art_sigsegv_fault, &libart_so_dl_info); | ^~~~~~~~~~~~~~~~~ | | | void (*)() In file included from art/runtime/runtime.cc:42: /usr/include/dlfcn.h:34:12: note: initializing argument 1 of 'int dladdr(const void*, Dl_info*)' 34 | int dladdr(const void *, Dl_info *); | ^~~~~~~~~~~~ In file included from art/runtime/verifier/method_verifier.h:32, from art/runtime/verifier/reg_type-inl.h:24, from art/runtime/verifier/reg_type_cache.cc:32: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/runtime.cc:1869:14: warning: invalid conversion from 'void (*)()' to 'const void*' [-fpermissive] 1869 | dladdr(art_sigsegv_fault, &libart_so_dl_info); | ^~~~~~~~~~~~~~~~~ | | | void (*)() /usr/include/dlfcn.h:34:12: note: initializing argument 1 of 'int dladdr(const void*, Dl_info*)' 34 | int dladdr(const void *, Dl_info *); | ^~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/process_state.h_operator_out.cc In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/instrumentation.h:30, from art/runtime/trace.h:34: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/monitor_objects_stack_visitor.h:25, from art/runtime/thread.cc:88: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/iftable-inl.h:21: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/oat.h:23, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/oat.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::VarTypeOffset()': art/runtime/mirror/var_handle.h:163:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); art/runtime/mirror/var_handle.h:163:25: note: in expansion of macro 'OFFSETOF_MEMBER' 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType0Offset()': art/runtime/mirror/var_handle.h:167:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); art/runtime/mirror/var_handle.h:167:25: note: in expansion of macro 'OFFSETOF_MEMBER' 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType1Offset()': art/runtime/mirror/var_handle.h:171:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); art/runtime/mirror/var_handle.h:171:25: note: in expansion of macro 'OFFSETOF_MEMBER' 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::AccessModesBitMaskOffset()': art/runtime/mirror/var_handle.h:175:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); art/runtime/mirror/var_handle.h:175:25: note: in expansion of macro 'OFFSETOF_MEMBER' 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/read_barrier.h:22, from art/runtime/lock_word.h:26, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/lock_word.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::FieldVarHandle::ArtFieldOffset()': art/runtime/mirror/var_handle.h:202:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::FieldVarHandle' is conditionally-supported [-Winvalid-offsetof] 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); art/runtime/mirror/var_handle.h:202:25: note: in expansion of macro 'OFFSETOF_MEMBER' 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteArrayViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:242:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteArrayViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:242:25: note: in expansion of macro 'OFFSETOF_MEMBER' 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteBufferViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:282:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteBufferViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:282:25: note: in expansion of macro 'OFFSETOF_MEMBER' 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/reg_type.h:27, from art/runtime/verifier/reg_type-inl.h:20, from art/runtime/verifier/method_verifier.cc:59: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/stack.h_operator_out.cc art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/object_callbacks.h:20, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/object_callbacks.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/allocator/rosalloc.h_operator_out.cc:1: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/mirror/object-inl.h:24: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/iftable-inl.h:21: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/runtime/art_method.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/runtime/jit/jit_code_cache.h:27, from art/runtime/trace.cc:42: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/oat_file.h:38, from art/runtime/class_loader_context.h:28: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/class_loader_context.h:26: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type-inl.h: In member function 'art::ObjPtr > art::mirror::MethodType::GetPTypes()': art/runtime/mirror/method_type-inl.h:28:69: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 28 | return GetFieldObject>(OFFSET_OF_OBJECT_MEMBER(MethodType, p_types_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h:28:45: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 28 | return GetFieldObject>(OFFSET_OF_OBJECT_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_type-inl.h: In member function 'art::ObjPtr art::mirror::MethodType::GetRType()': art/runtime/mirror/method_type-inl.h:36:56: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodType, r_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type-inl.h:36:32: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 36 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object.h:24: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/class_linker.h:34: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/unordered_map:50: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/method_verifier.h:32, from art/runtime/thread.cc:109: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/verifier/register_line-inl.h: In static member function 'static size_t art::verifier::RegisterLine::ComputeSize(size_t)': art/runtime/verifier/register_line-inl.h:187:26: warning: 'offsetof' within non-standard-layout type 'art::verifier::RegisterLine' is conditionally-supported [-Winvalid-offsetof] 187 | return OFFSETOF_MEMBER(RegisterLine, line_) + num_regs * sizeof(uint16_t); art/runtime/verifier/register_line-inl.h:187:10: note: in expansion of macro 'OFFSETOF_MEMBER' 187 | return OFFSETOF_MEMBER(RegisterLine, line_) + num_regs * sizeof(uint16_t); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/functional:67, from libbase/include/android-base/logging.h:60: /usr/include/c++/13.2.1/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, vector > > >; _Compare = __gnu_cxx::__ops::_Val_comp_iter >]': /usr/include/c++/13.2.1/bits/stl_algo.h:1792:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1792 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/verifier/register_line-inl.h: In static member function 'static size_t art::verifier::RegisterLine::ComputeSize(size_t)': art/runtime/verifier/register_line-inl.h:187:26: warning: 'offsetof' within non-standard-layout type 'art::verifier::RegisterLine' is conditionally-supported [-Winvalid-offsetof] 187 | return OFFSETOF_MEMBER(RegisterLine, line_) + num_regs * sizeof(uint16_t); art/runtime/verifier/register_line-inl.h:187:10: note: in expansion of macro 'OFFSETOF_MEMBER' 187 | return OFFSETOF_MEMBER(RegisterLine, line_) + num_regs * sizeof(uint16_t); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/dex_file-inl.h:20, from art/runtime/mirror/class-inl.h:31: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/runtime/art_method.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/suspend_reason.h_operator_out.cc art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, vector > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]': /usr/include/c++/13.2.1/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1812 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h:1812:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/verifier/verifier_deps.cc:112:58: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/stack.h:23, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/stack.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread.h_operator_out.cc art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algo.h:61: /usr/include/c++/13.2.1/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, vector > > >; _Distance = int; _Tp = pair >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]': /usr/include/c++/13.2.1/bits/stl_heap.h:224:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 224 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/verifier/method_verifier.cc:64: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.cc: In member function 'void art::Thread::Park(bool, int64_t)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/thread.cc:384:5: note: in expansion of macro 'DCHECK_EQ' 384 | DCHECK_EQ(old_state, kPermitAvailable); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/thread.cc:384:5: note: in expansion of macro 'DCHECK_EQ' 384 | DCHECK_EQ(old_state, kPermitAvailable); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/thread.cc:384:5: note: in expansion of macro 'DCHECK_EQ' 384 | DCHECK_EQ(old_state, kPermitAvailable); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/thread.cc:384:5: note: in expansion of macro 'DCHECK_EQ' 384 | DCHECK_EQ(old_state, kPermitAvailable); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/thread.cc:384:5: note: in expansion of macro 'DCHECK_EQ' 384 | DCHECK_EQ(old_state, kPermitAvailable); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/thread.cc:384:5: note: in expansion of macro 'DCHECK_EQ' 384 | DCHECK_EQ(old_state, kPermitAvailable); | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/trace.cc:49: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/transaction.h:26: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread_state.h_operator_out.cc art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/ti/agent.h_operator_out.cc art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/trace.h_operator_out.cc art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ host C++: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/verifier/verifier_enums.h_operator_out.cc In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] host asm: libart <= out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/mterp_arm.S art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/gc/heap.h_operator_out.cc:1: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, vector > > >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]': /usr/include/c++/13.2.1/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1918 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h:1918:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /usr/include/c++/13.2.1/bits/stl_algo.h:1932:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1932 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/scoped_arena_containers.h: In instantiation of 'void art::ArenaDelete::ProtectMemory(T*, size_t) const [with T = art::verifier::RegisterLine; size_t = unsigned int]': art/runtime/verifier/register_line-inl.h:233:18: required from here art/libartbase/base/scoped_arena_containers.h:242:13: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class art::verifier::RegisterLine' with no trivial copy-assignment [-Wclass-memaccess] 242 | memset(ptr, kMagicFill, size); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/verifier/register_line.h:66:7: note: 'class art::verifier::RegisterLine' declared here 66 | class RegisterLine { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/scoped_arena_containers.h:249:13: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class art::verifier::RegisterLine' with no trivial copy-assignment [-Wclass-memaccess] 249 | memset(ptr, kMagicFill, size); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/verifier/register_line.h:66:7: note: 'class art::verifier::RegisterLine' declared here 66 | class RegisterLine { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ host SharedLib: libbacktrace (out/host/linux-x86/obj/lib/libbacktrace.so) art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ target Generated: libart-dex2oat <= out/host/linux-x86/gen/STATIC_LIBRARIES/libart-dex2oat_intermediates/asm_defines.S art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/libartbase/base/atomic.h:27, from art/runtime/thread.h:28, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/base/locks.h:26, from art/runtime/thread.h:30: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/runtime/art_method.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:83:60: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/hidden_api.h:117:56: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ host SharedLib: libjavacore (out/host/linux-x86/obj/lib/libjavacore.so) In file included from art/libartbase/base/atomic.h:27, from art/runtime/trace.h:29, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/trace.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/locks.h:26, from art/runtime/trace.h:30: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ host StaticLib: libopenjdkjvm (out/host/linux-x86/obj/STATIC_LIBRARIES/libopenjdkjvm_intermediates/libopenjdkjvm.a) art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host SharedLib: libandroidfw (out/host/linux-x86/obj/lib/libandroidfw.so) art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ Copy: out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/asm_defines.h host SharedLib: libartbase (out/host/linux-x86/obj/lib/libartbase.so) art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libbacktrace.so art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.cc: In constructor 'art::StackDumpVisitor::StackDumpVisitor(std::ostream&, art::Thread*, art::Context*, bool, bool, bool)': art/runtime/thread.cc:1965:25: warning: declaration of 'dump_locks' shadows a member of 'art::StackDumpVisitor' [-Wshadow] 1965 | bool dump_locks = true) | ~~~~~^~~~~~~~~~~~~~~~~ art/runtime/monitor_objects_stack_visitor.h:82:14: note: shadowed declaration is here 82 | const bool dump_locks; | ^~~~~~~~~~ art/runtime/thread.cc: In constructor 'art::StackDumpVisitor::StackDumpVisitor(std::ostream&, art::Thread*, art::Context*, bool, bool, bool)': art/runtime/thread.cc:1965:25: warning: declaration of 'dump_locks' shadows a member of 'art::StackDumpVisitor' [-Wshadow] 1965 | bool dump_locks = true) | ~~~~~^~~~~~~~~~~~~~~~~ art/runtime/monitor_objects_stack_visitor.h:82:14: note: shadowed declaration is here 82 | const bool dump_locks; | ^~~~~~~~~~ art/runtime/thread.cc: In constructor 'art::StackDumpVisitor::StackDumpVisitor(std::ostream&, art::Thread*, art::Context*, bool, bool, bool)': art/runtime/thread.cc:1965:25: warning: declaration of 'dump_locks' shadows a member of 'art::StackDumpVisitor' [-Wshadow] 1965 | bool dump_locks = true) | ~~~~~^~~~~~~~~~~~~~~~~ art/runtime/monitor_objects_stack_visitor.h:82:14: note: shadowed declaration is here 82 | const bool dump_locks; | ^~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/linker/arm/relative_patcher_arm_base.cc art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ host C++: libart-dex2oat <= art/dex2oat/linker/arm/relative_patcher_thumb2.cc art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/dex/dex_to_dex_compiler.cc art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/runtime/debugger.h:28: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/primitive.h:23: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/runtime/art_method.h:20: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/dex/quick_compiler_callbacks.cc art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/driver/compiler_driver.cc art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = long long unsigned int; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'static void art::Dbg::GetThreads(art::mirror::Object*, std::vector*)' at art/runtime/debugger.cc:2365:28: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/linker/elf_writer.cc In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/linker/elf_writer_quick.cc art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/linker/image_writer.cc libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/linker/multi_oat_relative_patcher.cc In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = long long unsigned int; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'static void art::Dbg::FindLoadedClassBySignature(const char*, std::vector*)' at art/runtime/debugger.cc:1133:19: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/method_reference.h:22, from art/dex2oat/linker/arm/relative_patcher_arm_base.h:24, from art/dex2oat/linker/arm/relative_patcher_arm_base.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-dex2oat <= art/dex2oat/linker/oat_writer.cc libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/dex2oat/dex/dex_to_dex_compiler.h:25, from art/dex2oat/dex/dex_to_dex_compiler.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = long long unsigned int; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'static art::JDWP::JdwpError art::Dbg::GetReferringObjects(art::JDWP::ObjectId, int32_t, std::vector*)' at art/runtime/debugger.cc:1005:33: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/dex2oat/driver/compiler_driver.h:25, from art/dex2oat/driver/compiler_driver.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libdexfile/dex/dex_file.h:30, from art/libdexfile/dex/method_reference.h:22, from art/dex2oat/linker/arm/relative_patcher_arm_base.h:24, from art/dex2oat/linker/arm/relative_patcher_thumb2.h:22, from art/dex2oat/linker/arm/relative_patcher_thumb2.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/locks.h:25, from art/runtime/compiler_callbacks.h:20, from art/dex2oat/dex/quick_compiler_callbacks.h:20, from art/dex2oat/dex/quick_compiler_callbacks.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/base/locks.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ host C++: libart-dex2oat <= art/dex2oat/linker/relative_patcher.cc art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = long long unsigned int; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'static art::JDWP::JdwpError art::Dbg::GetInstances(art::JDWP::RefTypeId, int32_t, std::vector*)' at art/runtime/debugger.cc:987:25: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/dex2oat/linker/multi_oat_relative_patcher.h:20, from art/dex2oat/linker/multi_oat_relative_patcher.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/dex2oat/linker/elf_writer_quick.h:22, from art/dex2oat/linker/elf_writer_quick.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = long long unsigned int; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'static void art::Dbg::GetOwnedMonitors(art::JDWP::ObjectId, std::vector*, std::vector*)::OwnedMonitorVisitor::AppendOwnedMonitors(art::ObjPtr, void*)' at art/runtime/debugger.cc:906:35: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_set.h:33, from art/dex2oat/driver/compiler_driver.h:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/dex2oat/linker/elf_writer.h:26, from art/dex2oat/linker/elf_writer.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-dex2oat <= out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/dex/dex_to_dex_compiler.h_operator_out.cc art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/dex2oat/linker/elf_writer.h:27: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/verifier/verifier_deps.h:30, from art/dex2oat/dex/quick_compiler_callbacks.h:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_entrypoints_enum.h:22, from art/dex2oat/linker/arm/relative_patcher_thumb2.cc:26: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/dex2oat/dex/dex_to_dex_compiler.cc:22: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ In file included from art/runtime/handle.h:27, from art/runtime/verifier/verifier_deps.h:28: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26, from art/runtime/mirror/iftable-inl.h:22: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] host C++: libart-dex2oat <= out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/driver/compiler_driver.h_operator_out.cc In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_array-inl.h:29: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/well_known_classes.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libelffile/elf/elf_utils.h:22, from art/runtime/elf_file.h:25, from art/dex2oat/linker/elf_writer.cc:20: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/array-inl.h:26, from art/dex2oat/linker/arm/relative_patcher_thumb2.cc:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31, from art/compiler/debug/method_debug_info.h:24, from art/dex2oat/linker/multi_oat_relative_patcher.h:22: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = long long unsigned int; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'void art::GetChildThreadGroups(mirror::Object*, std::vector*)' at art/runtime/debugger.cc:2194:38, inlined from 'static art::JDWP::JdwpError art::Dbg::GetThreadGroupChildren(art::JDWP::ObjectId, art::JDWP::ExpandBuf*)' at art/runtime/debugger.cc:2220:25: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/dex2oat/linker/elf_writer.h:27, from art/dex2oat/linker/elf_writer_quick.h:24: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/dex2oat/linker/relative_patcher.h:22, from art/dex2oat/linker/relative_patcher.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27, from art/runtime/verifier/method_verifier.h:33: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/art_method.h:30, from art/dex2oat/linker/image_writer.h:31, from art/dex2oat/linker/image_writer.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/mem_map.h:28, from art/dex2oat/linker/oat_writer.h:29, from art/dex2oat/linker/oat_writer.cc:17: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/compiler/debug/method_debug_info.h:22, from art/compiler/debug/debug_info.h:23, from art/dex2oat/linker/oat_writer.h:31: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/dex2oat/driver/compiler_driver.cc:32: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/dex_file.h:31, from art/libdexfile/dex/method_reference.h:22, from art/dex2oat/linker/relative_patcher.h:26: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libartbase.so art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/mirror/iftable-inl.h:21, from art/runtime/mirror/class-inl.h:34, from art/dex2oat/dex/quick_compiler_callbacks.cc:21: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libelffile/elf/elf_utils.h:22, from art/libelffile/elf/elf_builder.h:29, from art/compiler/debug/elf_debug_writer.h:28, from art/dex2oat/linker/elf_writer_quick.cc:31: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = long long unsigned int; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'virtual bool art::ClassListCreator::operator()(art::ObjPtr)' at art/runtime/debugger.cc:1087:26: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ host C++: libart-dex2oat <= out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/linker/image_writer.h_operator_out.cc art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread-current-inl.h:20, from art/dex2oat/linker/elf_writer_quick.cc:38: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libjavacore.so Install: out/host/linux-x86/lib64/libandroidfw.so art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ host SharedLib: libdexfile (out/host/linux-x86/obj/lib/libdexfile.so) In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_field-inl.h:28, from art/runtime/class_linker-inl.h:22, from art/runtime/art_method-inl.h:24, from art/dex2oat/linker/oat_writer.cc:24: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/libartbase/base/atomic.h:27, from art/runtime/base/mutex.h:31, from art/dex2oat/dex/dex_to_dex_compiler.h:25, from out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/dex/dex_to_dex_compiler.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ In file included from art/runtime/base/mutex.h:33: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long unsigned int}; _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = long long unsigned int; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'static art::JDWP::JdwpError art::Dbg::GetInstanceCounts(const std::vector&, std::vector*)' at art/runtime/debugger.cc:963:22: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/arch/instruction_set.h:25, from art/dex2oat/driver/compiler_driver.h:25, from out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/driver/compiler_driver.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ In file included from art/runtime/thread-current-inl.h:20, from art/runtime/obj_ptr-inl.h:24, from art/runtime/gc_root-inl.h:24, from art/runtime/art_method-inl.h:32, from art/runtime/class_linker-inl.h:23, from art/runtime/art_field-inl.h:24, from art/dex2oat/linker/image_writer.cc:29: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/region_space.h:23, from art/runtime/gc/space/region_space-inl.h:20, from art/runtime/gc/collector/concurrent_copying-inl.h:25, from art/runtime/read_barrier-inl.h:23, from art/runtime/gc_root-inl.h:25: art/runtime/thread.h:1707:5: warning: multi-line comment [-Wcomment] 1707 | // Pending checkpoint function or null if non-pending. If this checkpoint is set and someone\ | ^ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_set.h:33, from art/dex2oat/driver/compiler_driver.h:28: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/stack.h_operator_out.cc:1: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:30, from art/dex2oat/linker/image_writer.h:31, from out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/linker/image_writer.h_operator_out.cc:3: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/libartbase/base/scoped_arena_containers.h: In instantiation of 'void art::ArenaDelete::ProtectMemory(T*, size_t) const [with T = art::verifier::RegisterLine; size_t = unsigned int]': art/runtime/verifier/register_line-inl.h:233:18: required from here art/libartbase/base/scoped_arena_containers.h:242:13: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class art::verifier::RegisterLine' with no trivial copy-assignment [-Wclass-memaccess] 242 | memset(ptr, kMagicFill, size); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/verifier/method_verifier.h:36: art/runtime/verifier/register_line.h:66:7: note: 'class art::verifier::RegisterLine' declared here 66 | class RegisterLine { | ^~~~~~~~~~~~ art/libartbase/base/scoped_arena_containers.h:249:13: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class art::verifier::RegisterLine' with no trivial copy-assignment [-Wclass-memaccess] 249 | memset(ptr, kMagicFill, size); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/verifier/register_line.h:66:7: note: 'class art::verifier::RegisterLine' declared here 66 | class RegisterLine { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libelffile/elf/elf_utils.h:22, from art/dex2oat/linker/image_writer.cc:43: /usr/include/sys/cdefs.h:4:2: warning: #warning usage of non-standard #include is deprecated [-Wcpp] 4 | #warning usage of non-standard #include is deprecated | ^~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/value_object.h:20, from art/libdexfile/dex/signature.h:26, from art/runtime/art_method.h:37: art/libartbase/base/macros.h:50:1: warning: multi-line comment [-Wcomment] 50 | // #define OFFSETOF_HELPER(t, f) \ | ^ art/libartbase/base/macros.h:52:1: warning: multi-line comment [-Wcomment] 52 | // #define OFFSETOF_MEMBER(t, f) \ | ^ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libdexfile.so art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetName() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/thread.cc:2866:66: required from here art/runtime/mirror/class-inl.h:751:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 751 | OFFSET_OF_OBJECT_MEMBER(Class, name_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:751:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 751 | OFFSET_OF_OBJECT_MEMBER(Class, name_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ host SharedLib: libprofile (out/host/linux-x86/obj/lib/libprofile.so) art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadFlagsOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/runtime/thread.cc:3336:3: required from 'static void art::Thread::DumpThreadOffset(std::ostream&, uint32_t) [with art::PointerSize size_of_pointers = art::PointerSize::k32; std::ostream = std::basic_ostream; uint32_t = unsigned int]' art/runtime/thread.cc:3325:82: required from here art/runtime/thread.h:664:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 664 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:664:9: note: in expansion of macro 'OFFSETOF_MEMBER' 664 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:759:48: required from 'static constexpr art::ThreadOffset art::Thread::CardTableOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]' art/runtime/thread.cc:3337:3: required from 'static void art::Thread::DumpThreadOffset(std::ostream&, uint32_t) [with art::PointerSize size_of_pointers = art::PointerSize::k32; std::ostream = std::basic_ostream; uint32_t = unsigned int]' art/runtime/thread.cc:3325:82: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThinLockIdOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/runtime/thread.cc:3343:3: required from 'static void art::Thread::DumpThreadOffset(std::ostream&, uint32_t) [with art::PointerSize size_of_pointers = art::PointerSize::k32; std::ostream = std::basic_ostream; uint32_t = unsigned int]' art/runtime/thread.cc:3325:82: required from here art/runtime/thread.h:650:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 650 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:650:9: note: in expansion of macro 'OFFSETOF_MEMBER' 650 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::IsGcMarkingOffset() [with art::PointerSize pointer_size = art::PointerSize::k32]': art/runtime/thread.cc:3344:3: required from 'static void art::Thread::DumpThreadOffset(std::ostream&, uint32_t) [with art::PointerSize size_of_pointers = art::PointerSize::k32; std::ostream = std::basic_ostream; uint32_t = unsigned int]' art/runtime/thread.cc:3325:82: required from here art/runtime/thread.h:678:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 678 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:678:9: note: in expansion of macro 'OFFSETOF_MEMBER' 678 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadFlagsOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]': art/runtime/thread.cc:3336:3: required from 'static void art::Thread::DumpThreadOffset(std::ostream&, uint32_t) [with art::PointerSize size_of_pointers = art::PointerSize::k64; std::ostream = std::basic_ostream; uint32_t = unsigned int]' art/runtime/thread.cc:3327:82: required from here art/runtime/thread.h:664:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 664 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:664:9: note: in expansion of macro 'OFFSETOF_MEMBER' 664 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:759:48: required from 'static constexpr art::ThreadOffset art::Thread::CardTableOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]' art/runtime/thread.cc:3337:3: required from 'static void art::Thread::DumpThreadOffset(std::ostream&, uint32_t) [with art::PointerSize size_of_pointers = art::PointerSize::k64; std::ostream = std::basic_ostream; uint32_t = unsigned int]' art/runtime/thread.cc:3327:82: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThinLockIdOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]': art/runtime/thread.cc:3343:3: required from 'static void art::Thread::DumpThreadOffset(std::ostream&, uint32_t) [with art::PointerSize size_of_pointers = art::PointerSize::k64; std::ostream = std::basic_ostream; uint32_t = unsigned int]' art/runtime/thread.cc:3327:82: required from here art/runtime/thread.h:650:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 650 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:650:9: note: in expansion of macro 'OFFSETOF_MEMBER' 650 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::IsGcMarkingOffset() [with art::PointerSize pointer_size = art::PointerSize::k64]': art/runtime/thread.cc:3344:3: required from 'static void art::Thread::DumpThreadOffset(std::ostream&, uint32_t) [with art::PointerSize size_of_pointers = art::PointerSize::k64; std::ostream = std::basic_ostream; uint32_t = unsigned int]' art/runtime/thread.cc:3327:82: required from here art/runtime/thread.h:678:25: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 678 | OFFSETOF_MEMBER(Thread, tls32_) + art/runtime/thread.h:678:9: note: in expansion of macro 'OFFSETOF_MEMBER' 678 | OFFSETOF_MEMBER(Thread, tls32_) + | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {double}; _Tp = double; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:66: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:223:28: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {double}; _Tp = double; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = double; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:224:28: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long unsigned int; _Alloc = std::allocator]', inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:227:30: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {double}; _Tp = double; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = double; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'void art::Histogram::CreateHistogram(CumulativeData*) const [with Value = long long unsigned int]' at art/libartbase/base/histogram-inl.h:228:30: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libprofile.so art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ host SharedLib: libart-dexlayout (out/host/linux-x86/obj/lib/libart-dexlayout.so) art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/entrypoints/entrypoint_utils.cc:26: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object.h:24: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/deque:62, from art/dex2oat/linker/arm/relative_patcher_arm_base.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/thread.h_operator_out.cc:1: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/libartbase/arch/instruction_set.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/dex2oat/linker/relative_patcher.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/debug/method_debug_info.h:24, from art/compiler/debug/debug_info.h:23, from art/dex2oat/linker/elf_writer.h:29: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from art/dex2oat/linker/elf_writer.h:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/libartbase/base/array_ref.h:21, from art/dex2oat/linker/arm/relative_patcher_thumb2.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/dex2oat/linker/multi_oat_relative_patcher.h:23: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/debug/method_debug_info.h:24, from art/compiler/debug/debug_info.h:23, from art/dex2oat/linker/elf_writer.h:29: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/dex2oat/linker/elf_writer_quick.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/length_prefixed_array.h:26, from art/compiler/driver/compiled_method_storage.h:25, from art/dex2oat/linker/multi_oat_relative_patcher.cc:23: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/length_prefixed_array.h:26, from art/compiler/compiled_method-inl.h:23, from art/dex2oat/linker/arm/relative_patcher_arm_base.cc:20: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/dex2oat/dex/dex_to_dex_compiler.h:24: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/stl_tree.h:63, from /usr/include/c++/13.2.1/set:62, from art/dex2oat/dex/dex_to_dex_compiler.h:20: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ Install: out/host/linux-x86/lib64/libart-dexlayout.so art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/method_reference.h:22, from art/dex2oat/dex/dex_to_dex_compiler.h:27: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/dex2oat/dex/dex_to_dex_compiler.h:24: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/dex/dex_to_dex_compiler.h_operator_out.cc:1: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/entrypoints/quick/quick_alloc_entrypoints.cc:24: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/method_reference.h:22, from art/dex2oat/dex/dex_to_dex_compiler.h:27: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/bits/stl_tree.h:63, from /usr/include/c++/13.2.1/set:62, from art/dex2oat/driver/compiler_driver.h:21: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/entrypoints/entrypoint_utils-inl.h:41: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/driver/compiler_driver.h_operator_out.cc:1: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/dex2oat/linker/arm/relative_patcher_thumb2.cc:22: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61, from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61, from /usr/include/c++/13.2.1/memory:66, from art/dex2oat/linker/image_writer.h:24: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/compiler/debug/method_debug_info.h:24: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/list:62, from art/dex2oat/linker/oat_writer.h:22: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/class_table.h:25, from art/runtime/class_table-inl.h:20, from art/runtime/entrypoints/quick/quick_dexcache_entrypoints.cc:21: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/dex2oat/dex/dex_to_dex_compiler.h:24, from art/dex2oat/driver/compiler_driver.h:38: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/runtime/oat_file_manager.h:24: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {std::pair, std::allocator > >}; _Tp = std::pair >; _Alloc = std::allocator > >]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector > >::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from art/dex2oat/dex/dex_to_dex_compiler.h:24, from art/dex2oat/driver/compiler_driver.h:38: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/map:62, from art/libartbase/base/safe_map.h:20, from art/runtime/transaction.h:22: /usr/include/c++/13.2.1/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(const_iterator, _Args&& ...) [with _Args = {unsigned int, art::Transaction::ObjectLog::FieldValue}; _Key = unsigned int; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /usr/include/c++/13.2.1/bits/stl_tree.h:2458:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 2458 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/method_reference.h:22, from art/dex2oat/dex/dex_to_dex_compiler.h:27: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/method_reference.h:22, from art/dex2oat/dex/dex_to_dex_compiler.h:27: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from /usr/include/c++/13.2.1/map:63: In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {unsigned int, art::Transaction::ObjectLog::FieldValue}; _Key = unsigned int; _Tp = art::Transaction::ObjectLog::FieldValue; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind >::other>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::emplace(_Args&& ...) [with _Args = {unsigned int, art::Transaction::ObjectLog::FieldValue}; _Key = unsigned int; _Tp = art::Transaction::ObjectLog::FieldValue; _Compare = std::less; _Alloc = std::allocator >]' at /usr/include/c++/13.2.1/bits/stl_map.h:601:22, inlined from 'void art::Transaction::ObjectLog::LogValue(FieldValueKind, art::MemberOffset, uint64_t, bool)' at art/runtime/transaction.cc:429:26: /usr/include/c++/13.2.1/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map::const_iterator' {aka 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/entrypoints/quick/quick_jni_entrypoints.cc:21: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66, from /usr/include/c++/13.2.1/string:47, from /usr/include/c++/13.2.1/bits/locale_classes.h:40, from /usr/include/c++/13.2.1/bits/ios_base.h:41, from /usr/include/c++/13.2.1/ios:44, from /usr/include/c++/13.2.1/ostream:40, from /usr/include/c++/13.2.1/iostream:41, from out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/linker/image_writer.h_operator_out.cc:1: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24, from art/dex2oat/linker/arm/relative_patcher_arm_base.cc:25: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/entrypoints/entrypoint_utils-inl.h:41: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/mirror/array-inl.h:26: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/method_reference.h:22, from art/compiler/dex/verification_results.h:28, from art/dex2oat/dex/quick_compiler_callbacks.cc:19: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/stl_algobase.h:65, from /usr/include/c++/13.2.1/vector:62, from art/runtime/base/locks.h:23: /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/entrypoints/quick/quick_field_entrypoints.cc:24: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/dex2oat/linker/image_writer.h:35: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array.h:24, from art/runtime/mirror/dex_cache.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/dex2oat/linker/oat_writer.h:33: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/class_reference.h:23, from art/dex2oat/driver/compiler_driver.h:36: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/class_reference.h:23, from art/dex2oat/driver/compiler_driver.h:36: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/libartbase/base/length_prefixed_array.h:26, from art/dex2oat/linker/image_writer.h:36: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/dex2oat/linker/image_writer.h:35: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/class_reference.h:23, from art/runtime/compiler_callbacks.h:21: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/libartbase/base/length_prefixed_array.h:26, from art/dex2oat/linker/image_writer.h:36: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(const_iterator, _Args&& ...) [with _Args = {std::pair}; _Key = unsigned int; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /usr/include/c++/13.2.1/bits/stl_tree.h:2458:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' changed in GCC 7.1 2458 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {std::pair, std::allocator > >}; _Tp = std::pair >; _Alloc = std::allocator > >]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::pair >; _Alloc = std::allocator > >]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'bool art::UnlinkLeastRecentlyUsedVdexIfNeeded(const std::string&, std::string*)' at art/runtime/oat_file_manager.cc:851:20, inlined from 'virtual void art::BackgroundVerificationTask::Run(art::Thread*)' at art/runtime/oat_file_manager.cc:945:45: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, vector > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]', inlined from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator >*, vector > > >; _Compare = art::UnlinkLeastRecentlyUsedVdexIfNeeded(const std::string&, std::string*)::]' at /usr/include/c++/13.2.1/bits/stl_algo.h:4894:18, inlined from 'bool art::UnlinkLeastRecentlyUsedVdexIfNeeded(const std::string&, std::string*)' at art/runtime/oat_file_manager.cc:859:12, inlined from 'virtual void art::BackgroundVerificationTask::Run(art::Thread*)' at art/runtime/oat_file_manager.cc:945:45: /usr/include/c++/13.2.1/bits/stl_algo.h:1947:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1947 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1948 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1949 | __comp); | ~~~~~~~ In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, vector > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]', inlined from 'void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, vector > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >]' at /usr/include/c++/13.2.1/bits/stl_algo.h:1950:31, inlined from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator >*, vector > > >; _Compare = art::UnlinkLeastRecentlyUsedVdexIfNeeded(const std::string&, std::string*)::]' at /usr/include/c++/13.2.1/bits/stl_algo.h:4894:18, inlined from 'bool art::UnlinkLeastRecentlyUsedVdexIfNeeded(const std::string&, std::string*)' at art/runtime/oat_file_manager.cc:859:12, inlined from 'virtual void art::BackgroundVerificationTask::Run(art::Thread*)' at art/runtime/oat_file_manager.cc:945:45: /usr/include/c++/13.2.1/bits/stl_algo.h:1859:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1859 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_algo.h:1864:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1864 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/dex2oat/driver/compiler_driver.h:28, from art/dex2oat/dex/quick_compiler_callbacks.cc:20: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/compiler/driver/compiler_options.h:26, from art/dex2oat/linker/elf_writer_quick.cc:33: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ In member function 'std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::emplace_hint(const_iterator, _Args&& ...) [with _Args = {std::pair}; _Key = unsigned int; _Tp = long long unsigned int; _Compare = std::less; _Alloc = std::allocator >]', inlined from 'std::__enable_if_t, _Pair>::value, std::pair, std::_Select1st >, _Compare, typename __gnu_cxx::__alloc_traits<_Allocator>::rebind >::other>::iterator, bool> > std::map<_Key, _Tp, _Compare, _Alloc>::insert(_Pair&&) [with _Pair = std::pair; _Key = unsigned int; _Tp = long long unsigned int; _Compare = std::less; _Alloc = std::allocator >]' at /usr/include/c++/13.2.1/bits/stl_map.h:860:27, inlined from 'void art::Transaction::ArrayLog::LogValue(size_t, uint64_t)' at art/runtime/transaction.cc:617:25: /usr/include/c++/13.2.1/bits/stl_map.h:640:45: note: parameter passing for argument of type 'std::map::const_iterator' {aka 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator'} changed in GCC 7.1 640 | return _M_t._M_emplace_hint_unique(__pos, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 641 | std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/length_prefixed_array.h:26, from art/compiler/driver/compiled_method_storage.h:25, from art/dex2oat/driver/compiler_driver.h:40: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/libartbase/base/length_prefixed_array.h:26, from art/compiler/driver/compiled_method_storage.h:25, from art/dex2oat/driver/compiler_driver.h:40: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/entrypoints/entrypoint_utils-inl.h:41: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/entrypoints/quick/quick_dexcache_entrypoints.cc:24: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/set:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/dex2oat/dex/dex_to_dex_compiler.h:24, from art/dex2oat/driver/compiler_driver.h:38: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file-inl.h:28, from art/libdexfile/dex/string_reference.h:24, from art/dex2oat/linker/oat_writer.h:34: art/libdexfile/dex/dex_instruction_iterator.h: At global scope: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from art/dex2oat/linker/oat_writer.h:35: art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:23: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/dex2oat/linker/oat_writer.h:37: art/libartbase/base/stride_iterator.h: At global scope: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/entrypoints/entrypoint_utils-inl.h:41: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/length_prefixed_array.h:26, from art/compiler/driver/compiled_method_storage.h:25, from art/dex2oat/driver/compiler_driver.h:40: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/stack_reference.h:21, from art/runtime/handle_scope.h:27, from art/runtime/thread.h:36: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/gc_root-inl.h:24: art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:23: art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from art/dex2oat/linker/oat_writer.h:21: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/memory_tool.h:20, from art/dex2oat/linker/image_writer.h:21: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/dex2oat/linker/image_writer.h:46: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/entrypoints/entrypoint_utils-inl.h:41: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ios:41: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/code_item_accessors.h:24, from art/runtime/art_method.h:32, from art/runtime/art_method-inl.h:20: art/libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27, from art/runtime/verifier/method_verifier.h:33: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/dex2oat/linker/image_writer.h:46: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/compiler/utils/arm/assembler_arm_vixl.h:22, from art/dex2oat/linker/arm/relative_patcher_thumb2.cc:32: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/verifier/method_verifier.cc:43: art/libdexfile/dex/dex_instruction-inl.h: In member function 'uint32_t art::Instruction::GetVarArgs(uint32_t*, uint16_t) const': art/libdexfile/dex/dex_instruction-inl.h:537:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 537 | arg[4] = InstA(inst_data); | ~~~~~~~^~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:539:5: note: here 539 | case 4: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:540:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 540 | arg[3] = (regList >> 12) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:542:5: note: here 542 | case 3: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:543:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 543 | arg[2] = (regList >> 8) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:545:5: note: here 545 | case 2: | ^~~~ art/libdexfile/dex/dex_instruction-inl.h:546:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 546 | arg[1] = (regList >> 4) & 0x0f; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_instruction-inl.h:548:5: note: here 548 | case 1: | ^~~~ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/vector:80: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/entrypoints/entrypoint_utils-inl.h:41: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator struct std::iterator' is deprecated [-Wdeprecated-declarations] 61 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 63 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 64 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc: In member function 'void art::linker::ElfWriterQuick::ComputeFileBuildId(uint8_t (*)[art::ElfBuilder::kBuildIdLen])': art/dex2oat/linker/elf_writer_quick.cc:306:12: warning: 'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 306 | SHA1_Init(&ctx); | ~~~~~~~~~^~~~~~ In file included from art/dex2oat/linker/elf_writer_quick.cc:20: /usr/include/openssl/sha.h:49:27: note: declared here 49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc:314:16: warning: 'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 314 | SHA1_Update(&ctx, buffer.data(), bytes_read); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/sha.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len); | ^~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:28: art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ In file included from art/libdexfile/dex/method_reference.h:23: art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/method_reference.h: In constructor 'art::MethodReference::MethodReference(const art::DexFile*, uint32_t)': art/libdexfile/dex/method_reference.h:30:49: warning: declaration of 'index' shadows a member of 'art::MethodReference' [-Wshadow] 30 | MethodReference(const DexFile* file, uint32_t index) : DexFileReference(file, index) {} | ~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc: In instantiation of 'void art::linker::ElfWriterQuick::ComputeFileBuildId(uint8_t (*)[art::ElfBuilder::kBuildIdLen]) [with ElfTypes = art::ElfTypes32; uint8_t = unsigned char]': art/dex2oat/linker/elf_writer_quick.cc:331:16: required from here art/dex2oat/linker/elf_writer_quick.cc:306:12: warning: 'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 306 | SHA1_Init(&ctx); | ~~~~~~~~~^~~~~~ /usr/include/openssl/sha.h:49:27: note: declared here 49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c); | ^~~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc:306:12: warning: 'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 306 | SHA1_Init(&ctx); | ~~~~~~~~~^~~~~~ /usr/include/openssl/sha.h:49:27: note: declared here 49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c); | ^~~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc:314:16: warning: 'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 314 | SHA1_Update(&ctx, buffer.data(), bytes_read); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/sha.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len); | ^~~~~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc:314:16: warning: 'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 314 | SHA1_Update(&ctx, buffer.data(), bytes_read); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/sha.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len); | ^~~~~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc:317:13: warning: 'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 317 | SHA1_Final(*build_id, &ctx); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/openssl/sha.h:51:27: note: declared here 51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c); | ^~~~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc:317:13: warning: 'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 317 | SHA1_Final(*build_id, &ctx); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/openssl/sha.h:51:27: note: declared here 51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c); | ^~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ In file included from /usr/include/c++/13.2.1/cstddef:50, from /usr/include/c++/13.2.1/bits/memory_resource.h:38, from /usr/include/c++/13.2.1/set:73: art/runtime/mirror/array.h: In member function 'void art::mirror::Array::SetLength(int32_t)': art/runtime/mirror/array.h:69:67: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:69:43: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | SetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_), length); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::LengthOffset()': art/runtime/mirror/array.h:73:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:73:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 73 | return OFFSET_OF_OBJECT_MEMBER(Array, length_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr art::MemberOffset art::mirror::Array::DataOffset(size_t)': art/runtime/mirror/array.h:78:50: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); art/runtime/mirror/array.h:78:34: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | size_t data_offset = RoundUp(OFFSETOF_MEMBER(Array, first_element_), component_size); | ^~~~~~~~~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc: In instantiation of 'void art::linker::ElfWriterQuick::ComputeFileBuildId(uint8_t (*)[art::ElfBuilder::kBuildIdLen]) [with ElfTypes = art::ElfTypes64; uint8_t = unsigned char]': art/dex2oat/linker/elf_writer_quick.cc:332:16: required from here art/dex2oat/linker/elf_writer_quick.cc:306:12: warning: 'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 306 | SHA1_Init(&ctx); | ~~~~~~~~~^~~~~~ /usr/include/openssl/sha.h:49:27: note: declared here 49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c); | ^~~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc:306:12: warning: 'int SHA1_Init(SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 306 | SHA1_Init(&ctx); | ~~~~~~~~~^~~~~~ /usr/include/openssl/sha.h:49:27: note: declared here 49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c); | ^~~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc:314:16: warning: 'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 314 | SHA1_Update(&ctx, buffer.data(), bytes_read); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/sha.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len); | ^~~~~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc:314:16: warning: 'int SHA1_Update(SHA_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 314 | SHA1_Update(&ctx, buffer.data(), bytes_read); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/openssl/sha.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len); | ^~~~~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc:317:13: warning: 'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 317 | SHA1_Final(*build_id, &ctx); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/openssl/sha.h:51:27: note: declared here 51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c); | ^~~~~~~~~~ art/dex2oat/linker/elf_writer_quick.cc:317:13: warning: 'int SHA1_Final(unsigned char*, SHA_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 317 | SHA1_Final(*build_id, &ctx); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~ /usr/include/openssl/sha.h:51:27: note: declared here 51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c); | ^~~~~~~~~~ art/runtime/mirror/array.h: In static member function 'static constexpr size_t art::mirror::Array::FirstElementOffset()': art/runtime/mirror/array.h:92:28: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 92 | return OFFSETOF_MEMBER(Array, first_element_); art/runtime/mirror/array.h:92:12: note: in expansion of macro 'OFFSETOF_MEMBER' 92 | return OFFSETOF_MEMBER(Array, first_element_); | ^~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/entrypoints/quick/quick_throw_entrypoints.cc:23: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/runtime/dex/dex_file_annotations.h:22, from art/runtime/art_method-inl.h:28: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/bits/cxxabi_init_exception.h:38, from /usr/include/c++/13.2.1/bits/exception_ptr.h:36, from /usr/include/c++/13.2.1/exception:164, from /usr/include/c++/13.2.1/ext/concurrence.h:34, from /usr/include/c++/13.2.1/bits/shared_ptr_base.h:62, from /usr/include/c++/13.2.1/bits/shared_ptr.h:53, from /usr/include/c++/13.2.1/memory:80: art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h: At global scope: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/entrypoints/entrypoint_utils-inl.h:36, from art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:29: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object-inl.h:20: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libdexfile/dex/dex_file.h:32, from art/libdexfile/dex/compact_dex_file.h:21, from art/libdexfile/dex/code_item_accessors-inl.h:23, from art/runtime/art_method-inl.h:26: art/libdexfile/dex/class_iterator.h: At global scope: art/libdexfile/dex/class_iterator.h:44:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 44 | class ClassIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:46:27: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 46 | using value_type = std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_iterator.h:47:32: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 47 | using difference_type = std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/entrypoints/quick/quick_dexcache_entrypoints.cc: At global scope: art/runtime/entrypoints/quick/quick_dexcache_entrypoints.cc:97:75: warning: 'optnone' attribute directive ignored [-Wattributes] 97 | ObjPtr resolved_string) | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27, from art/runtime/entrypoints/entrypoint_utils.h:29: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:968:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 968 | std::ostream& operator<<(std::ostream& os, const EncodedArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:996:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' in same scope [-Wredundant-decls] 996 | std::ostream& operator<<(std::ostream& os, const CallSiteArrayValueIterator::ValueType& code); | ^~~~~~~~ art/libdexfile/dex/dex_file.h:981:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const EncodedArrayValueIterator::ValueType&)' 981 | std::ostream& operator<<(std::ostream& os, const EncodedStaticFieldValueIterator::ValueType& code); | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class.h:24, from art/runtime/mirror/array-inl.h:25, from art/runtime/mirror/object-inl.h:22, from art/runtime/gc/space/region_space-inl.h:23: art/libartbase/base/stride_iterator.h:27:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 27 | class StrideIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libartbase/base/stride_iterator.h:30:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 30 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27, from art/runtime/entrypoints/entrypoint_utils.h:29: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/oat_file.h:38, from art/dex2oat/linker/image_writer.h:47: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:37: art/runtime/interpreter/interpreter_cache.h:90:26: warning: ignoring attributes on template argument 'art::InterpreterCache::Entry' {aka 'std::pair'} [-Wignored-attributes] 90 | std::array data_; | ^ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/thread.h:39: art/runtime/managed_stack.h:167:23: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack::TaggedTopQuickFrame art::ManagedStack::tagged_top_quick_frame_' 167 | TaggedTopQuickFrame tagged_top_quick_frame_; | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h: In member function 'void art::ManagedStack::PushManagedStackFragment(art::ManagedStack*)': art/runtime/managed_stack.h:55:11: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::ManagedStack'; use assignment or value-initialization instead [-Wclass-memaccess] 55 | memset(this, 0, sizeof(ManagedStack)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/managed_stack.h:44:17: note: 'class art::ManagedStack' declared here 44 | class PACKED(4) ManagedStack { | ^~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In static member function 'static void art::mirror::DexCache::SetNativePairPtrSize(std::atomic >*, size_t, art::mirror::NativeDexCachePair, art::PointerSize) [with T = art::ArtField]': art/runtime/mirror/dex_cache-inl.h:322:6: note: parameter passing for argument of type 'art::mirror::NativeDexCachePair' changed in GCC 7.1 322 | void DexCache::SetNativePairPtrSize(std::atomic>* pair_array, | ^~~~~~~~ art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 329 | AtomicStoreRelease16B(&array[idx], v); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 art/runtime/thread.h: At global scope: art/runtime/thread.h:1574:27: warning: ignoring packed attribute because of unpacked non-POD field 'std::atomic art::Thread::tls_32bit_sized_values::use_mterp' 1574 | std::atomic use_mterp; | ^~~~~~~~~ art/runtime/thread.h:1617:18: warning: ignoring packed attribute because of unpacked non-POD field 'art::ManagedStack art::Thread::tls_ptr_sized_values::managed_stack' 1617 | ManagedStack managed_stack; | ^~~~~~~~~~~~~ art/runtime/thread.h:1657:7: warning: ignoring packed attribute because of unpacked non-POD field 'art::Thread::tls_ptr_sized_values::DepsOrStackTraceSample art::Thread::tls_ptr_sized_values::deps_or_stack_trace_sample' 1657 | } deps_or_stack_trace_sample; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_map.h:22, from art/libartbase/base/arena_containers.h:29, from art/libartbase/base/scoped_arena_containers.h:27, from art/libartbase/base/bit_table.h:31, from art/runtime/stack_map.h:24, from art/runtime/stack.h:26, from art/runtime/nth_caller_visitor.h:22, from art/runtime/entrypoints/entrypoint_utils-inl.h:41: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/stack_map.h:26: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/dex2oat/linker/arm/relative_patcher_arm_base.h:21: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {art::debug::MethodDebugInfo}; _Tp = art::debug::MethodDebugInfo; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h: In static member function 'static void art::StackVisitor::WalkStack(const T&, art::Thread*, art::Context*, StackWalkKind, bool, bool)': art/runtime/stack.h:158:35: warning: declaration of 'const T& fn' shadows a parameter [-Wshadow] 158 | LambdaStackVisitor(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:149:48: note: shadowed declaration is here 149 | ALWAYS_INLINE static void WalkStack(const T& fn, | ~~~~~~~~~^~ art/runtime/stack.h:159:34: warning: declaration of 'art::Thread* thread' shadows a parameter [-Wshadow] 159 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:150:47: note: shadowed declaration is here 150 | Thread* thread, | ~~~~~~~~^~~~~~ art/runtime/stack.h:160:35: warning: declaration of 'art::Context* context' shadows a parameter [-Wshadow] 160 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:151:48: note: shadowed declaration is here 151 | Context* context, | ~~~~~~~~~^~~~~~~ art/runtime/stack.h:161:40: warning: declaration of 'art::StackVisitor::StackWalkKind walk_kind' shadows a parameter [-Wshadow] 161 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:152:53: note: shadowed declaration is here 152 | StackWalkKind walk_kind, | ~~~~~~~~~~~~~~^~~~~~~~~ art/runtime/stack.h:162:31: warning: declaration of 'bool check_suspended' shadows a parameter [-Wshadow] 162 | bool check_suspended = true) | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ art/runtime/stack.h:153:44: note: shadowed declaration is here 153 | bool check_suspended = true, | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {art::debug::MethodDebugInfo}; _Tp = art::debug::MethodDebugInfo; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = art::debug::MethodDebugInfo; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'virtual std::vector art::linker::ArmBaseRelativePatcher::GenerateThunkDebugInfo(uint32_t)' at art/dex2oat/linker/arm/relative_patcher_arm_base.cc:269:23: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/bit_utils.h:23, from art/libartbase/base/bit_vector.h:24: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::AllowedModesOffset()': art/runtime/mirror/method_handles_lookup.h:53:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); art/runtime/mirror/method_handles_lookup.h:53:25: note: in expansion of macro 'OFFSETOF_MEMBER' 53 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, allowed_modes_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handles_lookup.h: In static member function 'static art::MemberOffset art::mirror::MethodHandlesLookup::LookupClassOffset()': art/runtime/mirror/method_handles_lookup.h:57:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandlesLookup' is conditionally-supported [-Winvalid-offsetof] 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); art/runtime/mirror/method_handles_lookup.h:57:25: note: in expansion of macro 'OFFSETOF_MEMBER' 57 | return MemberOffset(OFFSETOF_MEMBER(MethodHandlesLookup, lookup_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/quick/quick_dexcache_entrypoints.cc:113:27: warning: 'always_inline' function might not be inlinable [-Wattributes] 113 | static ALWAYS_INLINE bool CanReferenceBss(ArtMethod* outer_method, ArtMethod* caller) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/interpreter/interpreter_common.h: At global scope: art/runtime/interpreter/interpreter_common.h:616:6: warning: redundant redeclaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' in same scope [-Wredundant-decls] 616 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/interpreter/interpreter_common.h:39: art/runtime/common_dex_operations.h:51:8: note: previous declaration of 'void art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, uint16_t, art::JValue*)' 51 | void ArtInterpreterToCompiledCodeBridge(Thread* self, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/class-inl.h:33: art/runtime/mirror/dex_cache.h: In constructor 'art::mirror::NativeDexCachePair::NativeDexCachePair(T*, uint32_t)': art/runtime/mirror/dex_cache.h:91:42: warning: declaration of 'index' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:88:10: note: shadowed declaration is here 88 | size_t index; | ^~~~~ art/runtime/mirror/dex_cache.h:91:25: warning: declaration of 'object' shadows a member of 'art::mirror::NativeDexCachePair' [-Wshadow] 91 | NativeDexCachePair(T* object, uint32_t index) | ~~~^~~~~~ art/runtime/mirror/dex_cache.h:87:6: note: shadowed declaration is here 87 | T* object; | ^~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::StringsOffset()': art/runtime/mirror/dex_cache.h:215:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:215:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 215 | return OFFSET_OF_OBJECT_MEMBER(DexCache, strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::PreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:219:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:219:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 219 | return OFFSET_OF_OBJECT_MEMBER(DexCache, preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:223:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:223:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 223 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:227:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:227:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 227 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:231:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:231:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 231 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:235:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:235:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 235 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::ResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:239:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:239:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 239 | return OFFSET_OF_OBJECT_MEMBER(DexCache, resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumStringsOffset()': art/runtime/mirror/dex_cache.h:243:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:243:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 243 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumPreResolvedStringsOffset()': art/runtime/mirror/dex_cache.h:247:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:247:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_preresolved_strings_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedTypesOffset()': art/runtime/mirror/dex_cache.h:251:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:251:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 251 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedFieldsOffset()': art/runtime/mirror/dex_cache.h:255:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:255:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 255 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_fields_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodsOffset()': art/runtime/mirror/dex_cache.h:259:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:259:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 259 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_methods_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedMethodTypesOffset()': art/runtime/mirror/dex_cache.h:263:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:263:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_method_types_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In static member function 'static constexpr art::MemberOffset art::mirror::DexCache::NumResolvedCallSitesOffset()': art/runtime/mirror/dex_cache.h:267:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:267:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 267 | return OFFSET_OF_OBJECT_MEMBER(DexCache, num_resolved_call_sites_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'const art::DexFile* art::mirror::DexCache::GetDexFile()': art/runtime/mirror/dex_cache.h:445:64: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:445:40: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 445 | return GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In member function 'void art::mirror::DexCache::SetDexFile(const art::DexFile*)': art/runtime/mirror/dex_cache.h:449:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h:449:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 449 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(DexCache, dex_file_), dex_file); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::StatusOffset()': art/runtime/mirror/class.h:102:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:102:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 102 | return MemberOffset(OFFSET_OF_OBJECT_MEMBER(Class, status_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::AccessFlagsOffset()': art/runtime/mirror/class.h:186:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:186:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 186 | return OFFSET_OF_OBJECT_MEMBER(Class, access_flags_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetFinalizable()': art/runtime/mirror/class.h:236:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:236:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 236 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetVerificationAttempted()': art/runtime/mirror/class.h:293:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:293:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 293 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::PrimitiveTypeOffset()': art/runtime/mirror/class.h:359:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:359:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 359 | return OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetPrimitiveType(art::Primitive::Type)': art/runtime/mirror/class.h:371:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:371:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 371 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_), v32); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ComponentTypeOffset()': art/runtime/mirror/class.h:440:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:440:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 440 | return OFFSET_OF_OBJECT_MEMBER(Class, component_type_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeOffset()': art/runtime/mirror/class.h:517:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:517:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 517 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::ObjectSizeAllocFastPathOffset()': art/runtime/mirror/class.h:520:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:520:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 520 | return OFFSET_OF_OBJECT_MEMBER(Class, object_size_alloc_fast_path_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetObjectSizeWithoutChecks(uint32_t)': art/runtime/mirror/class.h:534:33: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:534:9: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 534 | OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::SuperClassOffset()': art/runtime/mirror/class.h:602:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); art/runtime/mirror/class.h:602:25: note: in expansion of macro 'OFFSETOF_MEMBER' 602 | return MemberOffset(OFFSETOF_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::DexCacheOffset()': art/runtime/mirror/class.h:613:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); art/runtime/mirror/class.h:613:25: note: in expansion of macro 'OFFSETOF_MEMBER' 613 | return MemberOffset(OFFSETOF_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::IfTableOffset()': art/runtime/mirror/class.h:617:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); art/runtime/mirror/class.h:617:25: note: in expansion of macro 'OFFSETOF_MEMBER' 617 | return MemberOffset(OFFSETOF_MEMBER(Class, iftable_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::MethodsOffset()': art/runtime/mirror/class.h:642:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); art/runtime/mirror/class.h:642:25: note: in expansion of macro 'OFFSETOF_MEMBER' 642 | return MemberOffset(OFFSETOF_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In static member function 'static constexpr art::MemberOffset art::mirror::Class::VTableOffset()': art/runtime/mirror/class.h:753:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:753:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 753 | return OFFSET_OF_OBJECT_MEMBER(Class, vtable_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/array_ref.h:23, from art/dex2oat/linker/oat_writer.h:26: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceInstanceFieldsDuringLinking()': art/runtime/mirror/class.h:947:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:947:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 947 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceInstanceFields(uint32_t)': art/runtime/mirror/class.h:952:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:952:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 952 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint32_t art::mirror::Class::NumReferenceStaticFieldsDuringLinking()': art/runtime/mirror/class.h:976:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:976:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 976 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetNumReferenceStaticFields(uint32_t)': art/runtime/mirror/class.h:981:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:981:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 981 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_), new_num); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'pid_t art::mirror::Class::GetClinitThreadId()': art/runtime/mirror/class.h:1055:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1055:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1055 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'uint16_t art::mirror::Class::GetDexClassDefIndex()': art/runtime/mirror/class.h:1071:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1071:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1071 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexClassDefIndex(uint16_t)': art/runtime/mirror/class.h:1075:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1075:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1075 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_class_def_idx_), class_def_idx); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'art::dex::TypeIndex art::mirror::Class::GetDexTypeIndex()': art/runtime/mirror/class.h:1080:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1080:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1080 | static_cast(GetField32(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In member function 'void art::mirror::Class::SetDexTypeIndex(art::dex::TypeIndex)': art/runtime/mirror/class.h:1084:51: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:1084:27: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1084 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, dex_type_idx_), type_idx.index_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::VarTypeOffset()': art/runtime/mirror/var_handle.h:163:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); art/runtime/mirror/var_handle.h:163:25: note: in expansion of macro 'OFFSETOF_MEMBER' 163 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, var_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType0Offset()': art/runtime/mirror/var_handle.h:167:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); art/runtime/mirror/var_handle.h:167:25: note: in expansion of macro 'OFFSETOF_MEMBER' 167 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type0_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::CoordinateType1Offset()': art/runtime/mirror/var_handle.h:171:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); art/runtime/mirror/var_handle.h:171:25: note: in expansion of macro 'OFFSETOF_MEMBER' 171 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, coordinate_type1_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::VarHandle::AccessModesBitMaskOffset()': art/runtime/mirror/var_handle.h:175:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::VarHandle' is conditionally-supported [-Winvalid-offsetof] 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); art/runtime/mirror/var_handle.h:175:25: note: in expansion of macro 'OFFSETOF_MEMBER' 175 | return MemberOffset(OFFSETOF_MEMBER(VarHandle, access_modes_bit_mask_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::FieldVarHandle::ArtFieldOffset()': art/runtime/mirror/var_handle.h:202:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::FieldVarHandle' is conditionally-supported [-Winvalid-offsetof] 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); art/runtime/mirror/var_handle.h:202:25: note: in expansion of macro 'OFFSETOF_MEMBER' 202 | return MemberOffset(OFFSETOF_MEMBER(FieldVarHandle, art_field_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteArrayViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:242:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteArrayViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:242:25: note: in expansion of macro 'OFFSETOF_MEMBER' 242 | return MemberOffset(OFFSETOF_MEMBER(ByteArrayViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/var_handle.h: In static member function 'static art::MemberOffset art::mirror::ByteBufferViewVarHandle::NativeByteOrderOffset()': art/runtime/mirror/var_handle.h:282:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::ByteBufferViewVarHandle' is conditionally-supported [-Winvalid-offsetof] 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); art/runtime/mirror/var_handle.h:282:25: note: in expansion of macro 'OFFSETOF_MEMBER' 282 | return MemberOffset(OFFSETOF_MEMBER(ByteBufferViewVarHandle, native_byte_order_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/array_ref.h:23, from art/dex2oat/driver/compiler_driver.h:26: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/array-inl.h:27: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22, from art/runtime/art_method.h:38: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ In file included from art/runtime/class_linker.h:31, from art/runtime/mirror/class-inl.h:28, from art/runtime/mirror/object-inl.h:26, from art/runtime/gc/space/region_space-inl.h:23: art/libdexfile/dex/class_accessor.h: At global scope: art/libdexfile/dex/class_accessor.h:179:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 179 | class DataIterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:181:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 181 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/libdexfile/dex/class_accessor.h:183:23: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 183 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/dex2oat/linker/arm/relative_patcher_thumb2.cc: In member function 'virtual uint32_t art::linker::Thumb2RelativePatcher::MaxPositiveDisplacement(const art::linker::ArmBaseRelativePatcher::ThunkKey&)': art/dex2oat/linker/arm/relative_patcher_thumb2.cc:134:1: warning: control reaches end of non-void function [-Wreturn-type] 134 | } | ^ art/dex2oat/linker/arm/relative_patcher_thumb2.cc: In member function 'virtual uint32_t art::linker::Thumb2RelativePatcher::MaxNegativeDisplacement(const art::linker::ArmBaseRelativePatcher::ThunkKey&)': art/dex2oat/linker/arm/relative_patcher_thumb2.cc:143:1: warning: control reaches end of non-void function [-Wreturn-type] 143 | } | ^ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetClassTable(art::ClassTable*)': art/runtime/mirror/class_loader.h:52:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:52:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 52 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'art::LinearAlloc* art::mirror::ClassLoader::GetAllocator()': art/runtime/mirror/class_loader.h:58:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:58:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In member function 'void art::mirror::ClassLoader::SetAllocator(art::LinearAlloc*)': art/runtime/mirror/class_loader.h:62:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:62:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | SetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, allocator_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::CountOffset()': art/runtime/mirror/string.h:54:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:54:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 54 | return OFFSET_OF_OBJECT_MEMBER(String, count_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In static member function 'static constexpr art::MemberOffset art::mirror::String::ValueOffset()': art/runtime/mirror/string.h:58:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:58:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 58 | return OFFSET_OF_OBJECT_MEMBER(String, value_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetCount(int32_t)': art/runtime/mirror/string.h:98:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:98:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 98 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, count_), new_count); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/atomic.h:25: art/runtime/mirror/string.h: In member function 'void art::mirror::String::SetHashCode(int32_t)': art/runtime/mirror/string.h:247:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); libbase/include/android-base/logging.h:259:64: note: in definition of macro 'CHECK_OP' 259 | for (auto _values = ::android::base::MakeEagerEvaluator(LHS, RHS); \ | ^~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/string.h:247:5: note: in expansion of macro 'DCHECK_EQ' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:247:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 247 | DCHECK_EQ(0, GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:54: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:248:30: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 248 | SetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_), new_hash_code); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/macros.h:23: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_info.h: In static member function 'static art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateRoot()': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:204:5: note: in expansion of macro 'DCHECK_EQ' 204 | DCHECK_EQ(SubtypeCheckInfo::kAssigned, io.GetState()); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check.h:21, from art/runtime/mirror/class-inl.h:41: art/runtime/subtype_check_info.h: In member function 'art::SubtypeCheckInfo art::SubtypeCheckInfo::CreateChild(bool)': art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 222 | << "Unexpected bitstring state: " << GetState(); | ^ art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] art/runtime/subtype_check_info.h:222:55: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:234:5: note: in expansion of macro 'DCHECK_NE' 234 | DCHECK_NE(kAssigned, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::State' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:275:24: note: in expansion of macro 'CHECK_OP' 275 | #define CHECK_NE(x, y) CHECK_OP(x, y, != ) | ^~~~~~~~ libbase/include/android-base/logging.h:333:40: note: in expansion of macro 'CHECK_NE' 333 | if (::android::base::kEnableDChecks) CHECK_NE(x, y) | ^~~~~~~~ art/runtime/subtype_check_info.h:235:5: note: in expansion of macro 'DCHECK_NE' 235 | DCHECK_NE(kUninitialized, child.GetState()) << child.GetBitString(); | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSuperClass(art::ObjPtr)': art/runtime/mirror/class-inl.h:76:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:76:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:80:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 80 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, super_class_), new_super_class); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetCopiedMethodsStartOffset()': art/runtime/mirror/class-inl.h:113:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:113:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 113 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'uint32_t art::mirror::Class::GetVirtualMethodsStartOffset()': art/runtime/mirror/class-inl.h:127:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:127:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 127 | GetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetMethodsPtr()': art/runtime/mirror/class-inl.h:200:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:200:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 200 | static_cast(GetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetMethodsPtrUnchecked(art::LengthPrefixedArray*, uint32_t, uint32_t)': art/runtime/mirror/class-inl.h:261:45: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:261:21: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 261 | SetField64(OFFSET_OF_OBJECT_MEMBER(Class, methods_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:263:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 263 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, copied_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:48: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:265:24: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 265 | SetFieldShort(OFFSET_OF_OBJECT_MEMBER(Class, virtual_methods_offset_), | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::ObjPtr art::mirror::Class::GetVTableDuringLinking()': art/runtime/mirror/class-inl.h:297:63: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:297:39: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 297 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetVTable(art::ObjPtr)': art/runtime/mirror/class-inl.h:301:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:301:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 301 | SetFieldObject(OFFSET_OF_OBJECT_MEMBER(Class, vtable_), new_vtable); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetObjectSize(uint32_t)': art/runtime/mirror/class-inl.h:406:52: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:406:28: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 406 | return SetField32(OFFSET_OF_OBJECT_MEMBER(Class, object_size_), new_object_size); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'bool art::mirror::Class::IsSubClass(art::ObjPtr)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::SubtypeCheckInfo::Result' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ libbase/include/android-base/logging.h:331:40: note: in expansion of macro 'CHECK_EQ' 331 | if (::android::base::kEnableDChecks) CHECK_EQ(x, y) | ^~~~~~~~ art/runtime/mirror/class-inl.h:587:7: note: in expansion of macro 'DCHECK_EQ' 587 | DCHECK_EQ(expected_result, sc_result) | ^~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtr()': art/runtime/mirror/class-inl.h:662:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:662:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 662 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:699:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:699:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 699 | return SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetIFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:703:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:703:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 703 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, ifields_), new_ifields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetSFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:707:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:707:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 707 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'art::LengthPrefixedArray* art::mirror::Class::GetIFieldsPtrUnchecked()': art/runtime/mirror/class-inl.h:711:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:711:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 711 | return GetFieldPtr*>(OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from libbase/include/android-base/logging.h:64: art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtr(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:721:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); libbase/include/android-base/macros.h:120:49: note: in definition of macro 'LIKELY' 120 | #define LIKELY( exp ) (__builtin_expect( (exp) != 0, true )) | ^~~ libbase/include/android-base/logging.h:329:40: note: in expansion of macro 'CHECK' 329 | if (::android::base::kEnableDChecks) CHECK(x) | ^~~~~ art/runtime/mirror/class-inl.h:720:3: note: in expansion of macro 'DCHECK' 720 | DCHECK((IsRetired() && new_sfields == nullptr) || | ^~~~~~ art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:721:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 721 | GetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_)) == nullptr); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:722:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 722 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetSFieldsPtrUnchecked(art::LengthPrefixedArray*)': art/runtime/mirror/class-inl.h:726:65: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:726:41: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 726 | SetFieldPtr(OFFSET_OF_OBJECT_MEMBER(Class, sfields_), new_sfields); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClinitThreadId(pid_t)': art/runtime/mirror/class-inl.h:744:49: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:744:25: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 744 | SetField32Transaction(OFFSET_OF_OBJECT_MEMBER(Class, clinit_thread_id_), new_clinit_thread_id); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetName(art::ObjPtr)': art/runtime/mirror/class-inl.h:755:53: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:755:29: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 755 | SetFieldObjectTransaction(OFFSET_OF_OBJECT_MEMBER(Class, name_), name); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetClassFlags(uint32_t)': art/runtime/mirror/class-inl.h:920:46: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:920:22: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 920 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:47: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:922:23: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 922 | SetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_), new_flags); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetRecursivelyInitialized()': art/runtime/mirror/class-inl.h:1187:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1187:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1187 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_field-inl.h:30: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::PendingNextOffset()': art/runtime/mirror/reference.h:53:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:53:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 53 | return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueOffset()': art/runtime/mirror/reference.h:56:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:56:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 56 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::QueueNextOffset()': art/runtime/mirror/reference.h:59:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:59:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::Reference::ReferentOffset()': art/runtime/mirror/reference.h:62:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::Reference' is conditionally-supported [-Winvalid-offsetof] 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:62:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In member function 'void art::mirror::Class::SetHasDefaultMethods()': art/runtime/mirror/class-inl.h:1193:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1193:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1193 | uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/reference.h: In static member function 'static art::MemberOffset art::mirror::FinalizerReference::ZombieOffset()': art/runtime/mirror/reference.h:121:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::FinalizerReference' is conditionally-supported [-Winvalid-offsetof] 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/reference.h:121:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 121 | return OFFSET_OF_OBJECT_MEMBER(FinalizerReference, zombie_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_field.h:23, from art/runtime/art_field-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc: In function 'art::TwoWordReturn art::artInvokeInterfaceTrampoline(ArtMethod*, mirror::Object*, Thread*, ArtMethod**)': art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:2655:24: warning: possibly dangling reference to a temporary [-Wdangling-reference] 2655 | const Instruction& instr = caller_method->DexInstructions().InstructionAt(dex_pc); | ^~~~~ art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:2655:78: note: the temporary was destroyed at the end of the full expression 'caller_method->art::ArtMethod::DexInstructions().art::CodeItemInstructionAccessor::InstructionAt(dex_pc)' 2655 | const Instruction& instr = caller_method->DexInstructions().InstructionAt(dex_pc); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc: In function 'uint64_t art::artInvokePolymorphic(mirror::Object*, Thread*, ArtMethod**)': art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:2763:22: warning: possibly dangling reference to a temporary [-Wdangling-reference] 2763 | const Instruction& inst = caller_method->DexInstructions().InstructionAt(dex_pc); | ^~~~ art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:2763:75: note: the temporary was destroyed at the end of the full expression 'caller_method->art::ArtMethod::DexInstructions().art::CodeItemInstructionAccessor::InstructionAt(dex_pc)' 2763 | const Instruction& inst = caller_method->DexInstructions().InstructionAt(dex_pc); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::FormOffset()': art/runtime/mirror/method_type.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); art/runtime/mirror/method_type.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(MethodType, form_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::MethodDescriptorOffset()': art/runtime/mirror/method_type.h:78:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); art/runtime/mirror/method_type.h:78:25: note: in expansion of macro 'OFFSETOF_MEMBER' 78 | return MemberOffset(OFFSETOF_MEMBER(MethodType, method_descriptor_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::PTypesOffset()': art/runtime/mirror/method_type.h:82:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); art/runtime/mirror/method_type.h:82:25: note: in expansion of macro 'OFFSETOF_MEMBER' 82 | return MemberOffset(OFFSETOF_MEMBER(MethodType, p_types_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::RTypeOffset()': art/runtime/mirror/method_type.h:86:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); art/runtime/mirror/method_type.h:86:25: note: in expansion of macro 'OFFSETOF_MEMBER' 86 | return MemberOffset(OFFSETOF_MEMBER(MethodType, r_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_type.h: In static member function 'static art::MemberOffset art::mirror::MethodType::WrapAltOffset()': art/runtime/mirror/method_type.h:90:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodType' is conditionally-supported [-Winvalid-offsetof] 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); art/runtime/mirror/method_type.h:90:25: note: in expansion of macro 'OFFSETOF_MEMBER' 90 | return MemberOffset(OFFSETOF_MEMBER(MethodType, wrap_alt_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::mirror::MethodHandle::Kind art::mirror::MethodHandle::GetHandleKind()': art/runtime/mirror/method_handle_impl.h:64:68: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:64:44: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 64 | const int32_t handle_kind = GetField32(OFFSET_OF_OBJECT_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtField* art::mirror::MethodHandle::GetTargetField()': art/runtime/mirror/method_handle_impl.h:76:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:76:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 76 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In member function 'art::ArtMethod* art::mirror::MethodHandle::GetTargetMethod()': art/runtime/mirror/method_handle_impl.h:81:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h:81:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 81 | GetField64(OFFSET_OF_OBJECT_MEMBER(MethodHandle, art_field_or_method_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::CachedSpreadInvokerOffset()': art/runtime/mirror/method_handle_impl.h:103:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); art/runtime/mirror/method_handle_impl.h:103:25: note: in expansion of macro 'OFFSETOF_MEMBER' 103 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, cached_spread_invoker_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::NominalTypeOffset()': art/runtime/mirror/method_handle_impl.h:106:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); art/runtime/mirror/method_handle_impl.h:106:25: note: in expansion of macro 'OFFSETOF_MEMBER' 106 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, nominal_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::MethodTypeOffset()': art/runtime/mirror/method_handle_impl.h:109:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); art/runtime/mirror/method_handle_impl.h:109:25: note: in expansion of macro 'OFFSETOF_MEMBER' 109 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, method_type_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::ArtFieldOrMethodOffset()': art/runtime/mirror/method_handle_impl.h:112:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); art/runtime/mirror/method_handle_impl.h:112:25: note: in expansion of macro 'OFFSETOF_MEMBER' 112 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, art_field_or_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandle::HandleKindOffset()': art/runtime/mirror/method_handle_impl.h:115:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandle' is conditionally-supported [-Winvalid-offsetof] 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); art/runtime/mirror/method_handle_impl.h:115:25: note: in expansion of macro 'OFFSETOF_MEMBER' 115 | return MemberOffset(OFFSETOF_MEMBER(MethodHandle, handle_kind_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/method_handle_impl.h: In static member function 'static art::MemberOffset art::mirror::MethodHandleImpl::InfoOffset()': art/runtime/mirror/method_handle_impl.h:133:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::MethodHandleImpl' is conditionally-supported [-Winvalid-offsetof] 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); art/runtime/mirror/method_handle_impl.h:133:25: note: in expansion of macro 'OFFSETOF_MEMBER' 133 | return MemberOffset(OFFSETOF_MEMBER(MethodHandleImpl, info_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/call_site.h: In static member function 'static art::MemberOffset art::mirror::CallSite::TargetOffset()': art/runtime/mirror/call_site.h:36:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::CallSite' is conditionally-supported [-Winvalid-offsetof] 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); art/runtime/mirror/call_site.h:36:25: note: in expansion of macro 'OFFSETOF_MEMBER' 36 | return MemberOffset(OFFSETOF_MEMBER(CallSite, target_)); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:37: art/runtime/mirror/dex_cache-inl.h: In constructor 'art::mirror::DexCachePair::DexCachePair(art::ObjPtr, uint32_t)': art/runtime/mirror/dex_cache-inl.h:45:65: warning: declaration of 'index' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~^~~~~ art/runtime/mirror/dex_cache.h:51:12: note: shadowed declaration is here 51 | uint32_t index; | ^~~~~ art/runtime/mirror/dex_cache-inl.h:45:48: warning: declaration of 'object' shadows a member of 'art::mirror::DexCachePair' [-Wshadow] 45 | inline DexCachePair::DexCachePair(ObjPtr object, uint32_t index) | ~~~~~~~~~~^~~~~~ art/runtime/mirror/dex_cache.h:50:13: note: shadowed declaration is here 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:346:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' 50 | GcRoot object; | ^~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:362:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:101:50: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/object.h:579:52: required from 'void art::mirror::Object::SetFieldPtrWithSize(art::MemberOffset, T, art::PointerSize) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/object.h:556:77: required from 'void art::mirror::Object::SetFieldPtr(art::MemberOffset, T) [with bool kTransactionActive = false; bool kCheckTransaction = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; T = std::atomic >*]' art/runtime/mirror/dex_cache.h:394:23: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:161:52: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache.h: In instantiation of 'struct art::mirror::DexCachePair': /usr/include/c++/13.2.1/atomic:205:5: required from 'constexpr const int std::atomic >::_S_min_alignment' /usr/include/c++/13.2.1/atomic:209:11: required from 'constexpr const int std::atomic >::_S_alignment' /usr/include/c++/13.2.1/atomic:211:33: required from 'struct std::atomic >' art/runtime/mirror/dex_cache-inl.h:197:65: required from here art/runtime/mirror/dex_cache.h:50:13: warning: ignoring packed attribute because of unpacked non-POD field 'art::GcRoot art::mirror::DexCachePair::object' art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:465:34: required from 'bool art::mirror::Class::ResolvedFieldAccessTest(art::ObjPtr, art::ArtField*, art::ObjPtr, uint32_t) [with bool throw_on_failure = false; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:526:40: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h: In member function 'art::ObjPtr art::mirror::DexCache::GetLocation()': art/runtime/mirror/dex_cache-inl.h:441:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::DexCache' is conditionally-supported [-Winvalid-offsetof] 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:441:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 441 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(DexCache, location_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/runtime/mirror/array-inl.h:27, from art/runtime/mirror/object_array-inl.h:26, from art/runtime/mirror/iftable-inl.h:22: art/runtime/runtime.h: At global scope: art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetNonStandardExitsEnabled()::]', declared using local type 'art::Runtime::SetNonStandardExitsEnabled()::', is used but never defined [-fpermissive] 710 | static void DoAndMaybeSwitchInterpreter(Action lamda); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/runtime.h:710:15: warning: 'static void art::Runtime::DoAndMaybeSwitchInterpreter(Action) [with Action = art::Runtime::SetAsyncExceptionsThrown()::]', declared using local type 'art::Runtime::SetAsyncExceptionsThrown()::', is used but never defined [-fpermissive] In file included from art/runtime/mirror/object_array-inl.h:29: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27, from art/runtime/verifier/verifier_deps.h:28: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ In file included from art/runtime/art_method-inl.h:35: art/runtime/jit/profiling_info.h: In member function 'void art::ProfilingInfo::ClearGcRootsInInlineCaches()': art/runtime/jit/profiling_info.h:106:13: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'class art::GcRoot'; use assignment or value-initialization instead [-Wclass-memaccess] 106 | memset(&cache->classes_[0], | ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 107 | 0, | ~~ 108 | InlineCache::kIndividualCacheSize * sizeof(GcRoot)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/art_method.h:38, from art/runtime/art_method-inl.h:20: art/runtime/gc_root.h:186:7: note: 'class art::GcRoot' declared here 186 | class GcRoot { | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/dex2oat/driver/compiler_driver.h:28, from art/dex2oat/dex/dex_to_dex_compiler.cc:33: art/libartbase/base/hash_set.h: At global scope: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ In file included from art/libartbase/base/bit_vector-inl.h:20, from art/dex2oat/linker/oat_writer.cc:26: art/libartbase/base/bit_vector.h: At global scope: art/libartbase/base/bit_vector.h:51:12: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 51 | std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/class_table.h:25, from art/runtime/class_table-inl.h:20, from art/dex2oat/linker/oat_writer.cc:38: art/libartbase/base/hash_set.h:38:30: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 38 | class HashSetIterator : std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ In file included from art/dexlayout/./dexlayout.h:35, from art/dex2oat/linker/oat_writer.cc:50: art/dexlayout/./dex_ir.h:113:48: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 113 | template class Iterator : public std::iterator { | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/./dex_ir.h:115:36: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 115 | using value_type = typename std::iterator::value_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/./dex_ir.h:117:21: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 117 | typename std::iterator::difference_type; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/./dex_ir.h:118:33: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 118 | using pointer = typename std::iterator::pointer; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/dexlayout/./dex_ir.h:119:35: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 119 | using reference = typename std::iterator::reference; | ^~~~~~~~ /usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here 127 | struct _GLIBCXX17_DEPRECATED iterator | ^~~~~~~~ art/runtime/mirror/string-inl.h: In member function 'int32_t art::mirror::String::GetHashCode()': art/runtime/mirror/string-inl.h:71:55: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string-inl.h:71:31: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 71 | int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] 431 | ALWAYS_INLINE ArtMethod* FindMethodToCall(uint32_t method_idx, | ^~~~~~~~~~~~~~~~ art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/entrypoints/entrypoint_utils-inl.h:431:26: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h: In static member function 'static art::MemberOffset art::mirror::AccessibleObject::FlagOffset()': art/runtime/mirror/accessible_object.h:31:36: warning: 'offsetof' within non-standard-layout type 'art::mirror::AccessibleObject' is conditionally-supported [-Winvalid-offsetof] 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/accessible_object.h:31:12: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 31 | return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::ArtMethodOffset()': art/runtime/mirror/executable.h:52:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); art/runtime/mirror/executable.h:52:25: note: in expansion of macro 'OFFSETOF_MEMBER' 52 | return MemberOffset(OFFSETOF_MEMBER(Executable, art_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOffset()': art/runtime/mirror/executable.h:65:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); art/runtime/mirror/executable.h:65:25: note: in expansion of macro 'OFFSETOF_MEMBER' 65 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DeclaringClassOfOverriddenMethodOffset()': art/runtime/mirror/executable.h:68:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); art/runtime/mirror/executable.h:68:25: note: in expansion of macro 'OFFSETOF_MEMBER' 68 | return MemberOffset(OFFSETOF_MEMBER(Executable, declaring_class_of_overridden_method_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::AccessFlagsOffset()': art/runtime/mirror/executable.h:71:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); art/runtime/mirror/executable.h:71:25: note: in expansion of macro 'OFFSETOF_MEMBER' 71 | return MemberOffset(OFFSETOF_MEMBER(Executable, access_flags_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/executable.h: In static member function 'static art::MemberOffset art::mirror::Executable::DexMethodIndexOffset()': art/runtime/mirror/executable.h:74:41: warning: 'offsetof' within non-standard-layout type 'art::mirror::Executable' is conditionally-supported [-Winvalid-offsetof] 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); art/runtime/mirror/executable.h:74:25: note: in expansion of macro 'OFFSETOF_MEMBER' 74 | return MemberOffset(OFFSETOF_MEMBER(Executable, dex_method_index_)); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/dex2oat/linker/elf_writer.h:23: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const Elf64_Shdr&}; _Tp = Elf64_Shdr; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/gc/space/dlmalloc_space-inl.h:21, from art/runtime/gc/heap-inl.h:30, from art/runtime/mirror/array-alloc-inl.h:28, from art/runtime/mirror/object_array-alloc-inl.h:22, from art/dex2oat/linker/image_writer.cc:72: art/runtime/gc/allocator/dlmalloc.h: At global scope: art/runtime/gc/allocator/dlmalloc.h:35:32: warning: unknown option after '#pragma GCC diagnostic' kind [-Wpragmas] 35 | #pragma GCC diagnostic ignored "-Wnull-pointer-arithmetic" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = true; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/gc/allocator/dlmalloc.h:35:32: note: did you mean '-Wno-pointer-arith'? art/runtime/gc/space/dlmalloc_space-inl.h: In member function 'art::mirror::Object* art::gc::space::DlMallocSpace::AllocNonvirtual(art::Thread*, size_t, size_t*, size_t*, size_t*)': art/runtime/gc/space/dlmalloc_space-inl.h:40:11: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class art::mirror::Object' with no trivial copy-assignment [-Wclass-memaccess] 40 | memset(obj, 0, num_bytes); | ~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from art/runtime/image.h:24, from art/dex2oat/linker/image_writer.h:43: art/runtime/mirror/object.h:76:24: note: 'class art::mirror::Object' declared here 76 | class MANAGED LOCKABLE Object { | ^~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'uint16_t art::mirror::ClassExt::GetPreRedefineClassDefIndex()': art/runtime/mirror/class_ext.h:59:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:59:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 59 | GetField32(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_class_def_index_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h: In member function 'const art::DexFile* art::mirror::ClassExt::GetPreRedefineDexFile()': art/runtime/mirror/class_ext.h:66:44: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext.h:66:20: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 66 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassExt, pre_redefine_dex_file_ptr_)))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetVerifyError()': art/runtime/mirror/class_ext-inl.h:29:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:29:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, verify_error_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr > art::mirror::ClassExt::GetObsoleteDexCaches()': art/runtime/mirror/class_ext-inl.h:34:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:34:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 34 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_dex_caches_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In member function 'art::ObjPtr art::mirror::ClassExt::GetOriginalDexFile()': art/runtime/mirror/class_ext-inl.h:45:57: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:45:33: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 45 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassExt, original_dex_file_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/class_linker-inl.h: In static member function 'static bool art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, ClassGetter) [with bool kThrowOnError = false; ClassGetter = art::ClassLinker::CheckInvokeClassMismatch(art::ObjPtr, art::InvokeType, uint32_t, art::ObjPtr)::]': art/runtime/class_linker-inl.h:242:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 242 | if (dex_cache->GetDexFile()->SupportsDefaultMethods()) { | ^~ art/runtime/class_linker-inl.h:246:5: note: here 246 | case kVirtual: { | ^~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {Elf64_Shdr}; _Tp = Elf64_Shdr; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:337:69: required from 'art::ObjPtr art::ArtField::GetDexCache() [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]' art/runtime/class_linker-inl.h:75:65: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h: In member function 'art::ObjPtr art::mirror::ClassLoader::GetParent()': art/runtime/mirror/class_loader-inl.h:29:62: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader-inl.h:29:38: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 29 | return GetFieldObject(OFFSET_OF_OBJECT_MEMBER(ClassLoader, parent_)); | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const Elf64_Phdr&}; _Tp = Elf64_Phdr; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector >::iterator' changed in GCC 7.1 In file included from /usr/include/c++/13.2.1/vector:66: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Elf64_Phdr; _Alloc = std::allocator]', inlined from 'std::vector art::ElfBuilder::MakeProgramHeaders() [with ElfTypes = art::ElfTypes64]' at art/libelffile/elf/elf_builder.h:868:22: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Elf64_Phdr; _Alloc = std::allocator]', inlined from 'std::vector art::ElfBuilder::MakeProgramHeaders() [with ElfTypes = art::ElfTypes64]' at art/libelffile/elf/elf_builder.h:876:22: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Elf64_Phdr; _Alloc = std::allocator]', inlined from 'std::vector art::ElfBuilder::MakeProgramHeaders() [with ElfTypes = art::ElfTypes64]' at art/libelffile/elf/elf_builder.h:906:26: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Elf64_Phdr; _Alloc = std::allocator]', inlined from 'std::vector art::ElfBuilder::MakeProgramHeaders() [with ElfTypes = art::ElfTypes64]' at art/libelffile/elf/elf_builder.h:923:26: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from art/libdexfile/dex/type_reference.h:25, from art/libprofile/./profile/profile_compilation_info.h:35, from art/dex2oat/driver/compiler_driver.cc:75: art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/string_reference.h: In constructor 'art::StringReference::StringReference(const art::DexFile*, art::dex::StringIndex)': art/libdexfile/dex/string_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::StringReference' [-Wshadow] 34 | StringReference(const DexFile* file, dex::StringIndex index) | ~~~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/libdexfile/dex/type_reference.h: In constructor 'art::TypeReference::TypeReference(const art::DexFile*, art::dex::TypeIndex)': art/libdexfile/dex/type_reference.h:34:57: warning: declaration of 'index' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~ art/libdexfile/dex/dex_file_reference.h:30:12: note: shadowed declaration is here 30 | uint32_t index; | ^~~~~ art/libdexfile/dex/type_reference.h:34:32: warning: declaration of 'dex_file' shadows a member of 'art::TypeReference' [-Wshadow] 34 | TypeReference(const DexFile* dex_file, dex::TypeIndex index) | ~~~~~~~~~~~~~~~^~~~~~~~ art/libdexfile/dex/dex_file_reference.h:29:18: note: shadowed declaration is here 29 | const DexFile* dex_file; | ^~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/dex2oat/linker/image_writer.cc: In member function 'bool art::linker::ImageWriter::Write(int, const std::vector >&, const std::vector >&)': art/dex2oat/linker/image_writer.cc:798:46: warning: loop variable 'block' creates a copy from type 'const std::pair' [-Wrange-loop-construct] 798 | for (const std::pair block : block_sources) { | ^~~~~ art/dex2oat/linker/image_writer.cc:798:46: note: use reference type to prevent copying 798 | for (const std::pair block : block_sources) { | ^~~~~ | & In static member function 'static void art::mirror::DexCache::SetNativePairPtrSize(std::atomic >*, size_t, art::mirror::NativeDexCachePair, art::PointerSize) [with T = art::ArtMethod]', inlined from 'void art::mirror::DexCache::SetResolvedMethod(uint32_t, art::ArtMethod*, art::PointerSize)' at art/runtime/mirror/dex_cache-inl.h:290:23, inlined from 'art::ArtMethod* art::ClassLinker::FindResolvedMethod(art::ObjPtr, art::ObjPtr, art::ObjPtr, uint32_t)' at art/runtime/class_linker.cc:8533:33: art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 329 | AtomicStoreRelease16B(&array[idx], v); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27, from art/dex2oat/dex/dex_to_dex_compiler.h:28: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/dexlayout/./dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/./dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/./dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/./dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/./dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/./dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/./dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/./dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/./dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/./dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/./dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/./dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ art/dexlayout/./dex_ir.h: In constructor 'art::dex_ir::DexFileSection::DexFileSection(const std::string&, uint16_t, uint32_t, uint32_t)': art/dexlayout/./dex_ir.h:1340:82: warning: declaration of 'offset' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~~~ art/dexlayout/./dex_ir.h:1348:12: note: shadowed declaration is here 1348 | uint32_t offset; | ^~~~~~ art/dexlayout/./dex_ir.h:1340:67: warning: declaration of 'size' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1346:12: note: shadowed declaration is here 1346 | uint32_t size; | ^~~~ art/dexlayout/./dex_ir.h:1340:52: warning: declaration of 'type' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1344:12: note: shadowed declaration is here 1344 | uint16_t type; | ^~~~ art/dexlayout/./dex_ir.h:1340:37: warning: declaration of 'name' shadows a member of 'art::dex_ir::DexFileSection' [-Wshadow] 1340 | DexFileSection(const std::string& name, uint16_t type, uint32_t size, uint32_t offset) | ~~~~~~~~~~~~~~~~~~~^~~~ art/dexlayout/./dex_ir.h:1342:15: note: shadowed declaration is here 1342 | std::string name; | ^~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/runtime/class_linker.h:26: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_insert_aux(iterator, _Arg&&) [with _Arg = art::InternTable::Table::InternalTable; _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:413:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 413 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {art::InternTable::Table::InternalTable}; _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {Elf64_Shdr}; _Tp = Elf64_Shdr; _Alloc = std::allocator]', inlined from 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = Elf64_Shdr; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1296:21, inlined from 'off_t art::ElfBuilder::End() [with ElfTypes = art::ElfTypes64]' at art/libelffile/elf/elf_builder.h:553:20: /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Elf64_Shdr; _Alloc = std::allocator]', inlined from 'off_t art::ElfBuilder::End() [with ElfTypes = art::ElfTypes64]' at art/libelffile/elf/elf_builder.h:555:22: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/image.h: In member function 'art::ImageSection& art::ImageHeader::GetImageSection(ImageSections)': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:272:5: note: in expansion of macro 'DCHECK_LT' 272 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/runtime/image.h: In member function 'const art::ImageSection& art::ImageHeader::GetImageSection(ImageSections) const': libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::ImageHeader::ImageSections' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_Ch, _Tr>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:277:24: note: in expansion of macro 'CHECK_OP' 277 | #define CHECK_LT(x, y) CHECK_OP(x, y, < ) | ^~~~~~~~ libbase/include/android-base/logging.h:337:40: note: in expansion of macro 'CHECK_LT' 337 | if (::android::base::kEnableDChecks) CHECK_LT(x, y) | ^~~~~~~~ art/runtime/image.h:277:5: note: in expansion of macro 'DCHECK_LT' 277 | DCHECK_LT(static_cast(index), kSectionCount); | ^~~~~~~~~ art/dex2oat/driver/compiler_driver.cc: In lambda function: art/dex2oat/driver/compiler_driver.cc:487:32: warning: declaration of 'art::Handle dex_cache' shadows a parameter [-Wshadow] 487 | Handle dex_cache ATTRIBUTE_UNUSED) -> CompiledMethod* { art/dex2oat/driver/compiler_driver.cc:476:30: note: shadowed declaration is here 476 | Handle dex_cache) { | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:486:53: warning: declaration of 'art::optimizer::DexToDexCompiler::CompilationLevel dex_to_dex_compilation_level' shadows a parameter [-Wshadow] 486 | optimizer::DexToDexCompiler::CompilationLevel dex_to_dex_compilation_level, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:475:51: note: shadowed declaration is here 475 | optimizer::DexToDexCompiler::CompilationLevel dex_to_dex_compilation_level, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:485:22: warning: declaration of 'const art::DexFile& dex_file' shadows a parameter [-Wshadow] 485 | const DexFile& dex_file, | ~~~~~~~~~~~~~~~^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:474:20: note: shadowed declaration is here 474 | const DexFile& dex_file, | ~~~~~~~~~~~~~~~^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:484:35: warning: declaration of 'art::Handle class_loader' shadows a parameter [-Wshadow] 484 | Handle class_loader, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:473:33: note: shadowed declaration is here 473 | Handle class_loader, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:483:16: warning: declaration of 'uint32_t method_idx' shadows a parameter [-Wshadow] 483 | uint32_t method_idx, | ~~~~~~~~~^~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:472:14: note: shadowed declaration is here 472 | uint32_t method_idx, | ~~~~~~~~~^~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:482:16: warning: declaration of 'uint16_t class_def_idx' shadows a parameter [-Wshadow] 482 | uint16_t class_def_idx, | ~~~~~~~~~^~~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:471:14: note: shadowed declaration is here 471 | uint16_t class_def_idx, | ~~~~~~~~~^~~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:481:18: warning: declaration of 'art::InvokeType invoke_type' shadows a parameter [-Wshadow] 481 | InvokeType invoke_type, | ~~~~~~~~~~~^~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:470:16: note: shadowed declaration is here 470 | InvokeType invoke_type, | ~~~~~~~~~~~^~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:480:16: warning: declaration of 'uint32_t access_flags' shadows a parameter [-Wshadow] 480 | uint32_t access_flags, | ~~~~~~~~~^~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:469:14: note: shadowed declaration is here 469 | uint32_t access_flags, | ~~~~~~~~~^~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:479:28: warning: declaration of 'const art::dex::CodeItem* code_item' shadows a parameter [-Wshadow] 479 | const dex::CodeItem* code_item, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:468:26: note: shadowed declaration is here 468 | const dex::CodeItem* code_item, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:478:23: warning: declaration of 'art::CompilerDriver* driver' shadows a parameter [-Wshadow] 478 | CompilerDriver* driver, | ~~~~~~~~~~~~~~~~^~~~~~ art/dex2oat/driver/compiler_driver.cc:467:21: note: shadowed declaration is here 467 | CompilerDriver* driver, | ~~~~~~~~~~~~~~~~^~~~~~ art/dex2oat/driver/compiler_driver.cc:477:34: warning: declaration of 'art::Thread* self' shadows a parameter [-Wshadow] 477 | auto dex_2_dex_fn = [](Thread* self ATTRIBUTE_UNUSED, art/dex2oat/driver/compiler_driver.cc:466:13: note: shadowed declaration is here 466 | Thread* self, | ~~~~~~~~^~~~ art/dex2oat/driver/compiler_driver.cc: In lambda function: art/dex2oat/driver/compiler_driver.cc:550:32: warning: declaration of 'art::Handle dex_cache' shadows a parameter [-Wshadow] 550 | Handle dex_cache) { | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:538:30: note: shadowed declaration is here 538 | Handle dex_cache) { | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:549:53: warning: declaration of 'art::optimizer::DexToDexCompiler::CompilationLevel dex_to_dex_compilation_level' shadows a parameter [-Wshadow] 549 | optimizer::DexToDexCompiler::CompilationLevel dex_to_dex_compilation_level, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:537:51: note: shadowed declaration is here 537 | optimizer::DexToDexCompiler::CompilationLevel dex_to_dex_compilation_level, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:548:22: warning: declaration of 'const art::DexFile& dex_file' shadows a parameter [-Wshadow] 548 | const DexFile& dex_file, | ~~~~~~~~~~~~~~~^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:536:20: note: shadowed declaration is here 536 | const DexFile& dex_file, | ~~~~~~~~~~~~~~~^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:547:35: warning: declaration of 'art::Handle class_loader' shadows a parameter [-Wshadow] 547 | Handle class_loader, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:535:33: note: shadowed declaration is here 535 | Handle class_loader, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:546:16: warning: declaration of 'uint32_t method_idx' shadows a parameter [-Wshadow] 546 | uint32_t method_idx, | ~~~~~~~~~^~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:534:14: note: shadowed declaration is here 534 | uint32_t method_idx, | ~~~~~~~~~^~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:545:16: warning: declaration of 'uint16_t class_def_idx' shadows a parameter [-Wshadow] 545 | uint16_t class_def_idx, | ~~~~~~~~~^~~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:533:14: note: shadowed declaration is here 533 | uint16_t class_def_idx, | ~~~~~~~~~^~~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:544:18: warning: declaration of 'art::InvokeType invoke_type' shadows a parameter [-Wshadow] 544 | InvokeType invoke_type, | ~~~~~~~~~~~^~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:532:16: note: shadowed declaration is here 532 | InvokeType invoke_type, | ~~~~~~~~~~~^~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:543:16: warning: declaration of 'uint32_t access_flags' shadows a parameter [-Wshadow] 543 | uint32_t access_flags, | ~~~~~~~~~^~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:531:14: note: shadowed declaration is here 531 | uint32_t access_flags, | ~~~~~~~~~^~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:542:28: warning: declaration of 'const art::dex::CodeItem* code_item' shadows a parameter [-Wshadow] 542 | const dex::CodeItem* code_item, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:530:26: note: shadowed declaration is here 530 | const dex::CodeItem* code_item, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:541:23: warning: declaration of 'art::CompilerDriver* driver' shadows a parameter [-Wshadow] 541 | CompilerDriver* driver, | ~~~~~~~~~~~~~~~~^~~~~~ art/dex2oat/driver/compiler_driver.cc:529:21: note: shadowed declaration is here 529 | CompilerDriver* driver, | ~~~~~~~~~~~~~~~~^~~~~~ art/dex2oat/driver/compiler_driver.cc:540:15: warning: declaration of 'art::Thread* self' shadows a parameter [-Wshadow] 540 | Thread* self, | ~~~~~~~~^~~~ art/dex2oat/driver/compiler_driver.cc:528:13: note: shadowed declaration is here 528 | Thread* self, | ~~~~~~~~^~~~ In file included from art/runtime/stack_map.h:24, from art/runtime/oat_quick_method_header.h:24, from art/dex2oat/linker/oat_writer.cc:64: art/libartbase/base/bit_table.h: At global scope: art/libartbase/base/bit_table.h:156:38: warning: 'template struct std::iterator' is deprecated [-Wdeprecated-declarations] 156 | class const_iterator : public std::iterator&, art::TimingLogger*, art::VerificationResults*)': libbase/include/android-base/logging.h:266:35: warning: passing 'art::AtomicDexRefMap::InsertResult' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1793:11: note: in expansion of macro 'CHECK_EQ' 1793 | CHECK_EQ(result, ClassStateTable::kInsertResultSuccess) << ref.dex_file->GetLocation(); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1793:11: note: in expansion of macro 'CHECK_EQ' 1793 | CHECK_EQ(result, ClassStateTable::kInsertResultSuccess) << ref.dex_file->GetLocation(); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::AtomicDexRefMap::InsertResult' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1793:11: note: in expansion of macro 'CHECK_EQ' 1793 | CHECK_EQ(result, ClassStateTable::kInsertResultSuccess) << ref.dex_file->GetLocation(); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1793:11: note: in expansion of macro 'CHECK_EQ' 1793 | CHECK_EQ(result, ClassStateTable::kInsertResultSuccess) << ref.dex_file->GetLocation(); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: passing 'art::AtomicDexRefMap::InsertResult' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1793:11: note: in expansion of macro 'CHECK_EQ' 1793 | CHECK_EQ(result, ClassStateTable::kInsertResultSuccess) << ref.dex_file->GetLocation(); | ^~~~~~~~ libbase/include/android-base/logging.h:266:35: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1793:11: note: in expansion of macro 'CHECK_EQ' 1793 | CHECK_EQ(result, ClassStateTable::kInsertResultSuccess) << ref.dex_file->GetLocation(); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::AtomicDexRefMap::InsertResult' chooses 'int' over 'long unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1793:11: note: in expansion of macro 'CHECK_EQ' 1793 | CHECK_EQ(result, ClassStateTable::kInsertResultSuccess) << ref.dex_file->GetLocation(); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1793:11: note: in expansion of macro 'CHECK_EQ' 1793 | CHECK_EQ(result, ClassStateTable::kInsertResultSuccess) << ref.dex_file->GetLocation(); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::AtomicDexRefMap::InsertResult' chooses 'int' over 'long int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1793:11: note: in expansion of macro 'CHECK_EQ' 1793 | CHECK_EQ(result, ClassStateTable::kInsertResultSuccess) << ref.dex_file->GetLocation(); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1793:11: note: in expansion of macro 'CHECK_EQ' 1793 | CHECK_EQ(result, ClassStateTable::kInsertResultSuccess) << ref.dex_file->GetLocation(); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: passing 'art::AtomicDexRefMap::InsertResult' chooses 'int' over 'unsigned int' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1793:11: note: in expansion of macro 'CHECK_EQ' 1793 | CHECK_EQ(result, ClassStateTable::kInsertResultSuccess) << ref.dex_file->GetLocation(); | ^~~~~~~~ libbase/include/android-base/logging.h:266:67: warning: in call to 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits]' [-Wsign-promo] 266 | << " (" #LHS "=" << _values.lhs << ", " #RHS "=" << _values.rhs << ") " | ^~~ libbase/include/android-base/logging.h:274:24: note: in expansion of macro 'CHECK_OP' 274 | #define CHECK_EQ(x, y) CHECK_OP(x, y, == ) | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:1793:11: note: in expansion of macro 'CHECK_EQ' 1793 | CHECK_EQ(result, ClassStateTable::kInsertResultSuccess) << ref.dex_file->GetLocation(); | ^~~~~~~~ art/dex2oat/linker/image_writer.cc: In member function 'void art::linker::ImageWriter::CopyAndFixupMethod(art::ArtMethod*, art::ArtMethod*, size_t)': art/dex2oat/linker/image_writer.cc:3421:9: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class art::ArtMethod' with no trivial copy-assignment [-Wclass-memaccess] 3421 | memcpy(copy, orig, ArtMethod::Size(target_ptr_size_)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/art_method.h:71:7: note: 'class art::ArtMethod' declared here 71 | class ArtMethod final { | ^~~~~~~~~ art/runtime/stack_map.h:53:15: warning: redundant redeclaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' in same scope [-Wredundant-decls] 53 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ In file included from art/runtime/stack_map.h:30: art/runtime/dex_register_location.h:89:15: note: previous declaration of 'std::ostream& art::operator<<(std::ostream&, const DexRegisterLocation&)' 89 | std::ostream& operator<<(std::ostream& stream, const DexRegisterLocation& reg); | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc: In lambda function: art/dex2oat/driver/compiler_driver.cc:2577:20: warning: declaration of 'const art::DexFile& dex_file' shadows a parameter [-Wshadow] 2577 | const DexFile& dex_file = *context.GetDexFile(); | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:2561:43: note: shadowed declaration is here 2561 | const DexFile& dex_file, | ~~~~~~~~~~~~~~~^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:2584:27: warning: declaration of 'art::CompilerDriver* const driver' shadows a parameter [-Wshadow] 2584 | CompilerDriver* const driver = context.GetCompiler(); | ^~~~~~ art/dex2oat/driver/compiler_driver.cc:2559:44: note: shadowed declaration is here 2559 | static void CompileDexFile(CompilerDriver* driver, | ~~~~~~~~~~~~~~~~^~~~~~ art/dex2oat/driver/compiler_driver.cc:2592:33: warning: declaration of 'art::Handle class_loader' shadows a parameter [-Wshadow] 2592 | Handle class_loader( | ^~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:2560:36: note: shadowed declaration is here 2560 | jobject class_loader, | ~~~~~~~~^~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_method-inl.h:296:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/dex2oat/linker/image_writer.cc:1146:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/dex2oat/linker/image_writer.cc:1409:51: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/dex2oat/linker/image_writer.cc:1427:61: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/dex2oat/linker/image_writer.cc:1464:58: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/dex2oat/linker/image_writer.cc:2107:38: required from here art/runtime/mirror/class_loader.h:48:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'void art::mirror::Class::FixupNativePointers(art::mirror::Class*, art::PointerSize, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; Visitor = art::linker::ImageWriter::NativeLocationVisitor]': art/dex2oat/linker/image_writer.cc:3145:28: required from here art/runtime/mirror/class-inl.h:1120:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1120 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1120:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1120 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, sfields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1122:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1122 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1122:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1122 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, ifields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1125:60: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 1125 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:1125:36: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 1125 | dest, pointer_size, visitor, OFFSET_OF_OBJECT_MEMBER(Class, methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/dex2oat/driver/compiler_driver.cc:1514:57: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc: In instantiation of 'void art::CompileDexFile(CompilerDriver*, jobject, const DexFile&, const std::vector&, ThreadPool*, size_t, TimingLogger*, const char*, CompileFn) [with CompileFn = void (*)(Thread*, CompilerDriver*, const dex::CodeItem*, unsigned int, InvokeType, short unsigned int, unsigned int, Handle, const DexFile&, optimizer::DexToDexCompiler::CompilationLevel, Handle); jobject = _jobject*; size_t = unsigned int]': art/dex2oat/driver/compiler_driver.cc:2663:19: required from here art/dex2oat/driver/compiler_driver.cc:2577:20: warning: declaration of 'const art::DexFile& dex_file' shadows a parameter [-Wshadow] 2577 | const DexFile& dex_file = *context.GetDexFile(); | ^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:2561:43: note: shadowed declaration is here 2561 | const DexFile& dex_file, | ~~~~~~~~~~~~~~~^~~~~~~~ art/dex2oat/driver/compiler_driver.cc:2584:27: warning: declaration of 'art::CompilerDriver* const driver' shadows a parameter [-Wshadow] 2584 | CompilerDriver* const driver = context.GetCompiler(); | ^~~~~~ art/dex2oat/driver/compiler_driver.cc:2559:44: note: shadowed declaration is here 2559 | static void CompileDexFile(CompilerDriver* driver, | ~~~~~~~~~~~~~~~~^~~~~~ art/dex2oat/driver/compiler_driver.cc:2592:33: warning: declaration of 'art::Handle class_loader' shadows a parameter [-Wshadow] 2592 | Handle class_loader( | ^~~~~~~~~~~~ art/dex2oat/driver/compiler_driver.cc:2560:36: note: shadowed declaration is here 2560 | jobject class_loader, | ~~~~~~~~^~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:87:53: required from 'int32_t art::mirror::String::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]' art/runtime/mirror/string-inl.h:46:28: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-refvisitor-inl.h:82:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::linker::ImageWriter::CollectStringReferenceVisitor; JavaLangRefVisitor = art::linker::ImageWriter::CollectStringReferenceVisitor]' art/dex2oat/linker/image_writer.cc:481:53: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceInstanceFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-refvisitor-inl.h:82:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::ClinitImageUpdate; JavaLangRefVisitor = art::ClinitImageUpdate]' art/dex2oat/driver/compiler_driver.cc:1278:30: required from here art/runtime/mirror/class.h:942:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:942:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 942 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_instance_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/runtime/runtime.h:28: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_insert_aux(iterator, _Arg&&) [with _Arg = art::InternTable::Table::InternalTable; _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:413:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 413 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_insert_rval(const_iterator, value_type&&) [with _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]', inlined from 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1391:30, inlined from 'void art::InternTable::Table::AddInternStrings(art::InternTable::UnorderedSet&&, bool)' at art/runtime/intern_table-inl.h:71:17, inlined from 'size_t art::InternTable::AddTableFromMemory(const uint8_t*, const Visitor&, bool) [with Visitor = art::AppImageLoadingHelper::HandleAppImageStrings(art::gc::space::ImageSpace*)::]' at art/runtime/intern_table-inl.h:52:39, inlined from 'void art::InternTable::AddImageStringsToTable(art::gc::space::ImageSpace*, const Visitor&) [with Visitor = art::AppImageLoadingHelper::HandleAppImageStrings(art::gc::space::ImageSpace*)::]' at art/runtime/intern_table-inl.h:35:23, inlined from 'static void art::AppImageLoadingHelper::HandleAppImageStrings(art::gc::space::ImageSpace*)' at art/runtime/class_linker.cc:1728:41: /usr/include/c++/13.2.1/bits/vector.tcc:370:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 370 | _M_insert_aux(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc:372:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 372 | _M_realloc_insert(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {art::InternTable::Table::InternalTable}; _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'uint32_t art::mirror::Class::GetReferenceInstanceOffsets() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:913:55: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::ClinitImageUpdate]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::ClinitImageUpdate; JavaLangRefVisitor = art::ClinitImageUpdate]' art/dex2oat/driver/compiler_driver.cc:1278:30: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'uint32_t art::mirror::Class::GetReferenceInstanceOffsets() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:913:55: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::linker::ImageWriter::CollectStringReferenceVisitor]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::linker::ImageWriter::CollectStringReferenceVisitor; JavaLangRefVisitor = art::linker::ImageWriter::CollectStringReferenceVisitor]' art/dex2oat/linker/image_writer.cc:481:53: required from here art/runtime/mirror/class-inl.h:740:59: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:740:35: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 740 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, reference_instance_offsets_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_insert_rval(const_iterator, value_type&&) [with _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]', inlined from 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1391:30, inlined from 'void art::InternTable::Table::AddInternStrings(art::InternTable::UnorderedSet&&, bool)' at art/runtime/intern_table-inl.h:71:17, inlined from 'size_t art::InternTable::AddTableFromMemory(const uint8_t*, const Visitor&, bool) [with Visitor = art::VoidFunctor]' at art/runtime/intern_table-inl.h:52:39: /usr/include/c++/13.2.1/bits/vector.tcc:370:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 370 | _M_insert_aux(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc:372:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 372 | _M_realloc_insert(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h: In instantiation of 'art::ClassTable* art::mirror::ClassLoader::GetClassTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class_loader-inl.h:41:64: required from 'void art::mirror::ClassLoader::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitClasses = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::ClinitImageUpdate]' art/runtime/mirror/object-refvisitor-inl.h:70:58: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::ClinitImageUpdate; JavaLangRefVisitor = art::ClinitImageUpdate]' art/dex2oat/driver/compiler_driver.cc:1278:30: required from here art/runtime/mirror/class_loader.h:48:58: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassLoader' is conditionally-supported [-Winvalid-offsetof] 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_loader.h:48:34: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 48 | GetField64(OFFSET_OF_OBJECT_MEMBER(ClassLoader, class_table_))); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::NumReferenceStaticFields() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:888:54: required from 'void art::mirror::Object::VisitFieldsReferences(uint32_t, const Visitor&) [with bool kIsStatic = false; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::ClinitImageUpdate; uint32_t = unsigned int]' art/runtime/mirror/object-inl.h:912:65: required from 'void art::mirror::Object::VisitInstanceFieldsReferences(art::ObjPtr, const Visitor&) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::ClinitImageUpdate]' art/runtime/mirror/object-refvisitor-inl.h:41:68: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::ClinitImageUpdate; JavaLangRefVisitor = art::ClinitImageUpdate]' art/dex2oat/driver/compiler_driver.cc:1278:30: required from here art/runtime/mirror/class.h:971:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:971:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 971 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, num_reference_static_fields_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::ClinitImageUpdate]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::ClinitImageUpdate]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::ClinitImageUpdate; JavaLangRefVisitor = art::ClinitImageUpdate]' art/dex2oat/driver/compiler_driver.cc:1278:30: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::mirror::Class*]': art/runtime/subtype_check.h:475:54: required from 'static void art::SubtypeCheck::WriteSubtypeCheckBits(ClassPtr, const art::SubtypeCheckBits&) [with ClassPtr = art::mirror::Class*]' art/runtime/subtype_check.h:282:26: required from 'static art::SubtypeCheckInfo::State art::SubtypeCheck::ForceUninitialize(ClassPtr) [with ClassPtr = art::mirror::Class*]' art/dex2oat/linker/image_writer.cc:3167:52: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::ClinitImageUpdate]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::ClinitImageUpdate]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::ClinitImageUpdate]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::ClinitImageUpdate; JavaLangRefVisitor = art::ClinitImageUpdate]' art/dex2oat/driver/compiler_driver.cc:1278:30: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetExtData() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-refvisitor-inl.h:73:75: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::linker::ImageWriter::CollectStringReferenceVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::linker::ImageWriter::CollectStringReferenceVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::linker::ImageWriter::CollectStringReferenceVisitor; JavaLangRefVisitor = art::linker::ImageWriter::CollectStringReferenceVisitor]' art/dex2oat/linker/image_writer.cc:481:53: required from here art/runtime/mirror/class-inl.h:97:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:97:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 97 | OFFSET_OF_OBJECT_MEMBER(Class, ext_data_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h: At global scope: art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] In file included from art/runtime/handle.h:27, from art/dex2oat/dex/dex_to_dex_compiler.h:28: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::linker::ImageWriter::CollectStringReferenceVisitor]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = const art::linker::ImageWriter::CollectStringReferenceVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::linker::ImageWriter::CollectStringReferenceVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier; Visitor = art::linker::ImageWriter::CollectStringReferenceVisitor; JavaLangRefVisitor = art::linker::ImageWriter::CollectStringReferenceVisitor]' art/dex2oat/linker/image_writer.cc:481:53: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h: In instantiation of 'art::ObjPtr art::mirror::ClassExt::GetObsoleteMethods() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class_ext-inl.h:50:87: required from 'void art::mirror::ClassExt::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::linker::ImageWriter::PruneObjectReferenceVisitor]' art/runtime/mirror/class-refvisitor-inl.h:75:55: required from 'void art::mirror::Class::VisitNativeRoots(Visitor&, art::PointerSize) [with art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = const art::linker::ImageWriter::PruneObjectReferenceVisitor]' art/runtime/mirror/class-refvisitor-inl.h:49:41: required from 'void art::mirror::Class::VisitReferences(art::ObjPtr, const Visitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::linker::ImageWriter::PruneObjectReferenceVisitor]' art/runtime/mirror/object-refvisitor-inl.h:52:87: required from 'void art::mirror::Object::VisitReferences(const Visitor&, const JavaLangRefVisitor&) [with bool kVisitNativeRoots = true; art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; Visitor = art::linker::ImageWriter::PruneObjectReferenceVisitor; JavaLangRefVisitor = art::linker::ImageWriter::PruneObjectReferenceVisitor]' art/dex2oat/linker/image_writer.cc:1347:27: required from here art/runtime/mirror/class_ext-inl.h:41:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::ClassExt' is conditionally-supported [-Winvalid-offsetof] 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class_ext-inl.h:41:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 41 | OFFSET_OF_OBJECT_MEMBER(ClassExt, obsolete_methods_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from art/libartbase/base/hash_set.h:31: art/libartbase/base/data_hash.h: In member function 'size_t art::DataHash::operator()(const Container&) const [with Container = std::__cxx11::basic_string]': art/libartbase/base/data_hash.h:77:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 77 | k1 ^= tail[2] << 16; | ~~~^~~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:79:9: note: here 79 | case 2: | ^~~~ art/libartbase/base/data_hash.h:80:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 80 | k1 ^= tail[1] << 8; | ~~~^~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:82:9: note: here 82 | case 1: | ^~~~ art/libartbase/base/data_hash.h: In member function 'size_t art::DataHash::operator()(const Container&) const [with Container = std::basic_string_view]': art/libartbase/base/data_hash.h:77:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 77 | k1 ^= tail[2] << 16; | ~~~^~~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:79:9: note: here 79 | case 2: | ^~~~ art/libartbase/base/data_hash.h:80:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 80 | k1 ^= tail[1] << 8; | ~~~^~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:82:9: note: here 82 | case 1: | ^~~~ In file included from art/runtime/mirror/object_reference.h:23, from art/runtime/gc_root.h:22: art/runtime/obj_ptr.h: At global scope: art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/dex2oat/linker/image_writer.cc:643:6: warning: 'always_inline' function might not be inlinable [-Wattributes] 643 | bool ImageWriter::IsValidAppImageStringReference(ObjPtr referred_obj) const { | ^~~~~~~~~~~ In file included from art/libartbase/base/hash_set.h:31: art/libartbase/base/data_hash.h: In member function 'size_t art::DataHash::operator()(const Container&) const [with Container = std::__cxx11::basic_string]': art/libartbase/base/data_hash.h:77:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 77 | k1 ^= tail[2] << 16; | ~~~^~~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:79:9: note: here 79 | case 2: | ^~~~ art/libartbase/base/data_hash.h:80:14: warning: this statement may fall through [-Wimplicit-fallthrough=] 80 | k1 ^= tail[1] << 8; | ~~~^~~~~~~~~~~~~~~ art/libartbase/base/data_hash.h:82:9: note: here 82 | case 1: | ^~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::GetClassFlags() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/class.h:264:32: required from here art/runtime/mirror/class.h:191:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:191:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 191 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/array.h: In instantiation of 'int32_t art::mirror::Array::GetLength() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/iftable.h:50:21: required from here art/runtime/mirror/array.h:62:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Array' is conditionally-supported [-Winvalid-offsetof] 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/array.h:62:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 62 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Array, length_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:85:65: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:316:61: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetSuperClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:440:56: required from here art/runtime/mirror/class-inl.h:69:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:69:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 69 | OFFSET_OF_OBJECT_MEMBER(Class, super_class_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:838:64: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::Primitive::Type art::mirror::Class::GetPrimitiveType() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:851:64: required from here art/runtime/mirror/class-inl.h:762:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:762:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 762 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'bool art::mirror::Class::IsProxyClass() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]': art/runtime/mirror/class-inl.h:852:33: required from here art/runtime/mirror/class.h:354:78: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:354:54: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 354 | uint32_t access_flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithoutReadBarrier]': art/runtime/mirror/class-inl.h:889:66: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'size_t art::mirror::Class::GetPrimitiveTypeSizeShift() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]': art/runtime/mirror/class-inl.h:1017:97: required from here art/runtime/mirror/class-inl.h:773:66: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:773:42: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 773 | int32_t v32 = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, primitive_type_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetClassLoader() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/art_field-inl.h:405:45: required from here art/runtime/mirror/class-inl.h:91:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:91:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 91 | OFFSET_OF_OBJECT_MEMBER(Class, class_loader_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetDexCache() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/dex2oat/linker/oat_writer.cc:1522:41: required from here art/runtime/mirror/class-inl.h:103:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:103:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 103 | OFFSET_OF_OBJECT_MEMBER(Class, dex_cache_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k32; size_t = unsigned int]' art/runtime/thread.h:704:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/thread.h: In instantiation of 'static constexpr art::ThreadOffset art::Thread::ThreadOffsetFromTlsPtr(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]': art/runtime/thread.h:714:48: required from 'static art::ThreadOffset art::Thread::QuickEntryPointOffset(size_t) [with art::PointerSize pointer_size = art::PointerSize::k64; size_t = unsigned int]' art/runtime/thread.h:707:53: required from here art/runtime/thread.h:692:35: warning: 'offsetof' within non-standard-layout type 'art::Thread' is conditionally-supported [-Winvalid-offsetof] 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); art/runtime/thread.h:692:19: note: in expansion of macro 'OFFSETOF_MEMBER' 692 | size_t base = OFFSETOF_MEMBER(Thread, tlsPtr_); | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h: In instantiation of 'art::ObjPtr art::mirror::Class::GetVTable() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier]': art/runtime/mirror/class-inl.h:336:76: required from 'art::ArtMethod* art::mirror::Class::GetVTableEntry(uint32_t, art::PointerSize) [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; art::ReadBarrierOption kReadBarrierOption = art::kWithReadBarrier; uint32_t = unsigned int]' art/runtime/mirror/class-inl.h:622:24: required from here art/runtime/mirror/class-inl.h:292:31: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class-inl.h:292:7: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 292 | OFFSET_OF_OBJECT_MEMBER(Class, vtable_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/mirror/class.h: In instantiation of 'uint32_t art::mirror::Class::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; uint32_t = unsigned int]': art/runtime/mirror/object-inl.h:357:62: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/class.h:481:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::Class' is conditionally-supported [-Winvalid-offsetof] 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/class.h:481:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 481 | return GetField32(OFFSET_OF_OBJECT_MEMBER(Class, class_size_)); | ^~~~~~~~~~~~~~~~~~~~~~~ art/runtime/subtype_check.h: In instantiation of 'static art::SubtypeCheckBitsAndStatus art::SubtypeCheck::ReadField(ClassPtr) [with ClassPtr = art::ObjPtr]': art/runtime/subtype_check.h:572:66: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr, size_t) [with ClassPtr = art::ObjPtr; size_t = unsigned int]' art/runtime/subtype_check.h:565:31: required from 'static art::SubtypeCheckInfo art::SubtypeCheck::GetSubtypeCheckInfo(ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/subtype_check.h:355:47: required from 'static art::SubtypeCheckInfo::Result art::SubtypeCheck::IsSubtypeOf(ClassPtr, ClassPtr) [with ClassPtr = art::ObjPtr]' art/runtime/mirror/class-inl.h:575:82: required from here art/runtime/subtype_check.h:455:13: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'union art::SubtypeCheckBitsAndStatus' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 455 | memcpy(&tmp, &int32_data, sizeof(tmp)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from art/runtime/subtype_check_bits_and_status.h:20, from art/runtime/subtype_check.h:20: art/runtime/subtype_check_bits_and_status.h:70:24: note: 'union art::SubtypeCheckBitsAndStatus' declared here 70 | BITSTRUCT_DEFINE_START(SubtypeCheckBitsAndStatus, BitSizeOf()) | ^~~~~~~~~~~~~~~~~~~~~~~~~ art/libartbase/base/bit_struct.h:278:11: note: in definition of macro 'BITSTRUCT_DEFINE_START' 278 | union name { /* NOLINT */ \ | ^~~~ art/runtime/mirror/string.h: In instantiation of 'int32_t art::mirror::String::GetCount() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; int32_t = int]': art/runtime/mirror/string.h:194:58: required from 'bool art::mirror::String::IsCompressed() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone]' art/runtime/mirror/string.h:72:21: required from 'size_t art::mirror::String::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/mirror/object-inl.h:359:63: required from 'size_t art::mirror::Object::SizeOf() [with art::VerifyObjectFlags kVerifyFlags = art::kVerifyNone; size_t = unsigned int]' art/runtime/gc/space/region_space-inl.h:308:76: required from here art/runtime/mirror/string.h:92:61: warning: 'offsetof' within non-standard-layout type 'art::mirror::String' is conditionally-supported [-Winvalid-offsetof] 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); art/runtime/mirror/object.h:67:18: note: in expansion of macro 'OFFSETOF_MEMBER' 67 | MemberOffset(OFFSETOF_MEMBER(type, field)) | ^~~~~~~~~~~~~~~ art/runtime/mirror/string.h:92:37: note: in expansion of macro 'OFFSET_OF_OBJECT_MEMBER' 92 | return GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); | ^~~~~~~~~~~~~~~~~~~~~~~ In function 'void art::artQuickGenericJniEndJNINonRef(Thread*, uint32_t, bool, jobject)', inlined from 'art::TwoWordReturn art::artQuickGenericJniTrampoline(Thread*, ArtMethod**)' at art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:2440:41: art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:2329:29: warning: 'cookie' may be used uninitialized [-Wmaybe-uninitialized] 2329 | JniMethodEndSynchronized(cookie, lock, self); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc: In function 'art::TwoWordReturn art::artQuickGenericJniTrampoline(Thread*, ArtMethod**)': art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:2389:12: note: 'cookie' was declared here 2389 | uint32_t cookie; | ^~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from /usr/include/c++/13.2.1/functional:64: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const jvalue&}; _Tp = jvalue; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:66: In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = jvalue; _Alloc = std::allocator]', inlined from 'virtual void art::BuildQuickArgumentVisitor::Visit()' at art/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc:885:19: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 197 | ALWAYS_INLINE bool Object::IsSpecificPrimitiveArray() { | ^~~~~~ art/runtime/mirror/object-inl.h:197:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ In file included from art/runtime/mirror/object.h:24, from art/runtime/mirror/class.h:31: art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr-inl.h:95:35: warning: 'always_inline' function might not be inlinable [-Wattributes] 95 | OBJPTR_INLINE ObjPtr& ObjPtr::operator=(MirrorType* ptr) { | ^~~~~~~~~~~~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:152:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 152 | OBJPTR_INLINE bool operator==(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] 180 | OBJPTR_INLINE bool operator!=(ObjPtr ptr, std::nullptr_t) { | ^~~~~~~~ art/runtime/obj_ptr.h:180:20: warning: 'always_inline' function might not be inlinable [-Wattributes] art/runtime/class_linker.cc: In member function 'art::ObjPtr art::ClassLinker::FindClass(art::Thread*, const char*, art::Handle)': art/runtime/class_linker.cc:3051:7: warning: 'descriptor_equals' may be used uninitialized [-Wmaybe-uninitialized] 3051 | if (descriptor_equals) { | ^~ art/runtime/class_linker.cc:2937:8: note: 'descriptor_equals' was declared here 2937 | bool descriptor_equals; | ^~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13.2.1/vector:72, from art/dex2oat/linker/oat_writer.h:24: /usr/include/c++/13.2.1/bits/vector.tcc: In function 'void std::vector<_Tp, _Alloc>::_M_range_insert(iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::move_iterator<__gnu_cxx::__normal_iterator > >; _Tp = art::debug::MethodDebugInfo; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:751:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 751 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc:751:7: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 /usr/include/c++/13.2.1/bits/vector.tcc:751:7: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 In file included from /usr/include/c++/13.2.1/vector:66: In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, _InputIterator, _InputIterator) [with _InputIterator = std::move_iterator<__gnu_cxx::__normal_iterator > >; = void; _Tp = art::debug::MethodDebugInfo; _Alloc = std::allocator]', inlined from 'typename art::dchecked_vector::Base::iterator art::dchecked_vector::insert(typename Base::const_iterator, InputIterator, InputIterator) [with InputIterator = std::move_iterator<__gnu_cxx::__normal_iterator > >; T = art::debug::MethodDebugInfo; Alloc = std::allocator]' at art/libartbase/base/dchecked_vector.h:161:24, inlined from 'virtual bool art::linker::OatWriter::LayoutReserveOffsetCodeMethodVisitor::VisitComplete()' at art/dex2oat/linker/oat_writer.cc:1263:35: /usr/include/c++/13.2.1/bits/stl_vector.h:1483:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1483 | _M_range_insert(begin() + __offset, __first, __last, | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1484 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_vector.h:1483:26: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 In file included from /usr/include/c++/13.2.1/vector:72, from /usr/include/c++/13.2.1/functional:64, from libbase/include/android-base/logging.h:60: /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_insert_aux(iterator, _Arg&&) [with _Arg = art::InternTable::Table::InternalTable; _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:413:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 413 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ art/runtime/class_linker.cc: In member function 'art::ObjPtr art::ClassLinker::ResolveMethodHandleForField(art::Thread*, const art::dex::MethodHandleItem&, art::ArtMethod*)': art/runtime/class_linker.cc:9027:42: warning: 'kind' may be used uninitialized [-Wmaybe-uninitialized] 9027 | return mirror::MethodHandleImpl::Create(self, target, kind, method_type); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker.cc:8908:30: note: 'kind' was declared here 8908 | mirror::MethodHandle::Kind kind; | ^~~~ art/runtime/class_linker.cc:8958:25: warning: 'is_put' may be used uninitialized [-Wmaybe-uninitialized] 8958 | if (UNLIKELY(is_put && target_field->IsFinal())) { libbase/include/android-base/macros.h:121:49: note: in definition of macro 'UNLIKELY' 121 | #define UNLIKELY( exp ) (__builtin_expect( (exp) != 0, false )) | ^~~ art/runtime/class_linker.cc:8909:8: note: 'is_put' was declared here 8909 | bool is_put; | ^~~~~~ art/runtime/class_linker.cc:8950:19: warning: 'is_static' may be used uninitialized [-Wmaybe-uninitialized] 8950 | ResolveField(method_handle.field_or_method_idx_, referrer, is_static); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker.cc:8910:8: note: 'is_static' was declared here 8910 | bool is_static; | ^~~~~~~~~ In file included from art/runtime/class_linker.cc:112: In static member function 'static art::ObjPtr > art::mirror::ObjectArray::Alloc(art::Thread*, art::ObjPtr, int32_t) [with T = art::mirror::Class]', inlined from 'art::ObjPtr art::ClassLinker::ResolveMethodHandleForField(art::Thread*, const art::dex::MethodHandleItem&, art::ArtMethod*)' at art/runtime/class_linker.cc:8969:72: art/runtime/mirror/object_array-alloc-inl.h:57:15: warning: 'num_params' may be used uninitialized [-Wmaybe-uninitialized] 57 | return Alloc(self, | ~~~~~^~~~~~ 58 | object_array_class, | ~~~~~~~~~~~~~~~~~~~ 59 | length, | ~~~~~~~ 60 | Runtime::Current()->GetHeap()->GetCurrentAllocator()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ art/runtime/class_linker.cc: In member function 'art::ObjPtr art::ClassLinker::ResolveMethodHandleForField(art::Thread*, const art::dex::MethodHandleItem&, art::ArtMethod*)': art/runtime/class_linker.cc:8911:11: note: 'num_params' was declared here 8911 | int32_t num_params; | ^~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {art::InternTable::Table::InternalTable}; _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {const art::debug::MethodDebugInfo&}; _Tp = art::debug::MethodDebugInfo; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In member function 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = art::debug::MethodDebugInfo; _Alloc = std::allocator]', inlined from 'virtual bool art::linker::OatWriter::LayoutCodeMethodVisitor::VisitMethod(size_t, const art::ClassAccessor::Method&)' at art/dex2oat/linker/oat_writer.cc:1182:42: /usr/include/c++/13.2.1/bits/stl_vector.h:1289:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1289 | _M_realloc_insert(end(), __x); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In static member function 'static void art::mirror::DexCache::SetNativePairPtrSize(std::atomic >*, size_t, art::mirror::NativeDexCachePair, art::PointerSize) [with T = art::ArtMethod]', inlined from 'void art::mirror::DexCache::ClearResolvedMethod(uint32_t, art::PointerSize)' at art/runtime/mirror/dex_cache-inl.h:301:25, inlined from 'void art::linker::ImageWriter::PruneDexCache(art::ObjPtr, art::ObjPtr)' at art/dex2oat/linker/image_writer.cc:1601:37: art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 329 | AtomicStoreRelease16B(&array[idx], v); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 In static member function 'static void art::mirror::DexCache::SetNativePairPtrSize(std::atomic >*, size_t, art::mirror::NativeDexCachePair, art::PointerSize) [with T = art::ArtField]', inlined from 'void art::mirror::DexCache::ClearResolvedField(uint32_t, art::PointerSize)' at art/runtime/mirror/dex_cache-inl.h:267:25, inlined from 'void art::linker::ImageWriter::PruneDexCache(art::ObjPtr, art::ObjPtr)' at art/dex2oat/linker/image_writer.cc:1627:36: art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 329 | AtomicStoreRelease16B(&array[idx], v); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ art/runtime/mirror/dex_cache-inl.h:329:26: note: parameter passing for argument of type 'art::mirror::DexCache::ConversionPair64' {aka 'art::mirror::DexCache::ConversionPair'} changed in GCC 7.1 /usr/include/c++/13.2.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {art::debug::MethodDebugInfo}; _Tp = art::debug::MethodDebugInfo; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector::iterator' changed in GCC 7.1 445 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc: In function 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {art::debug::MethodDebugInfo}; _Tp = art::debug::MethodDebugInfo; _Alloc = std::allocator]': /usr/include/c++/13.2.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 123 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, _InputIterator, _InputIterator) [with _InputIterator = std::move_iterator<__gnu_cxx::__normal_iterator > >; = void; _Tp = art::debug::MethodDebugInfo; _Alloc = std::allocator]', inlined from 'typename art::dchecked_vector::Base::iterator art::dchecked_vector::insert(typename Base::const_iterator, InputIterator, InputIterator) [with InputIterator = std::move_iterator<__gnu_cxx::__normal_iterator > >; T = art::debug::MethodDebugInfo; Alloc = std::allocator]' at art/libartbase/base/dchecked_vector.h:161:24, inlined from 'virtual bool art::linker::OatWriter::LayoutReserveOffsetCodeMethodVisitor::VisitComplete()' at art/dex2oat/linker/oat_writer.cc:1263:35, inlined from 'bool art::linker::OatWriter::OrderedMethodVisitor::Visit()' at art/dex2oat/linker/oat_writer.cc:1118:25, inlined from 'bool art::linker::OatWriter::OrderedMethodVisitor::Visit()' at art/dex2oat/linker/oat_writer.cc:1107:8, inlined from 'size_t art::linker::OatWriter::_ZN3art6linker9OatWriter19InitOatCodeDexFilesEj.part.0(size_t)' at art/dex2oat/linker/oat_writer.cc:2253:48: /usr/include/c++/13.2.1/bits/stl_vector.h:1483:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1483 | _M_range_insert(begin() + __offset, __first, __last, | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1484 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/stl_vector.h:1483:26: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_insert_rval(const_iterator, value_type&&) [with _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]', inlined from 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, value_type&&) [with _Tp = art::InternTable::Table::InternalTable; _Alloc = std::allocator]' at /usr/include/c++/13.2.1/bits/stl_vector.h:1391:30, inlined from 'void art::InternTable::Table::AddInternStrings(art::InternTable::UnorderedSet&&, bool)' at art/runtime/intern_table-inl.h:71:17, inlined from 'size_t art::InternTable::AddTableFromMemory(const uint8_t*, const Visitor&, bool) [with Visitor = art::VoidFunctor]' at art/runtime/intern_table-inl.h:52:39, inlined from 'void art::linker::ImageWriter::CopyAndFixupNativeData(size_t)' at art/dex2oat/linker/image_writer.cc:2901:41: /usr/include/c++/13.2.1/bits/vector.tcc:370:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 370 | _M_insert_aux(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13.2.1/bits/vector.tcc:372:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 372 | _M_realloc_insert(begin() + __n, std::move(__v)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ host StaticLib: libart-dex2oat (out/host/linux-x86/obj/STATIC_LIBRARIES/libart-dex2oat_intermediates/libart-dex2oat.a) host SharedLib: libart (out/host/linux-x86/obj/lib/libart.so) Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Install: out/host/linux-x86/framework/dx.jar Copy: dx (out/host/linux-x86/obj/EXECUTABLES/dx_intermediates/dx) Install: out/host/linux-x86/bin/dx Install: out/host/linux-x86/lib64/libart.so host SharedLib: libart-compiler (out/host/linux-x86/obj/lib/libart-compiler.so) host SharedLib: libopenjdkjvm (out/host/linux-x86/obj/lib/libopenjdkjvm.so) host SharedLib: libopenjdk (out/host/linux-x86/obj/lib/libopenjdk.so) Install: out/host/linux-x86/lib64/libopenjdkjvm.so Install: out/host/linux-x86/lib64/libopenjdk.so Install: out/host/linux-x86/lib64/libart-compiler.so host Executable: dex2oat (out/host/linux-x86/obj/EXECUTABLES/dex2oat_intermediates/dex2oat) Install: out/host/linux-x86/bin/dex2oat Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Copying: out/host/common/obj/JAVA_LIBRARIES/core-all-hostdex_intermediates/classes-jarjar.jar Copying: out/host/common/obj/JAVA_LIBRARIES/core-all-hostdex_intermediates/classes.jar target Dex: core-all-hostdex Host Jar: core-all-hostdex (out/host/common/obj/JAVA_LIBRARIES/core-all-hostdex_intermediates/javalib.jar) host Java: core-oj-hostdex (out/host/common/obj/JAVA_LIBRARIES/core-oj-hostdex_intermediates/classes) Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Copying: out/host/common/obj/JAVA_LIBRARIES/core-oj-hostdex_intermediates/classes-jarjar.jar Copying: out/host/common/obj/JAVA_LIBRARIES/core-oj-hostdex_intermediates/classes.jar target Dex: core-oj-hostdex Host Jar: core-oj-hostdex (out/host/common/obj/JAVA_LIBRARIES/core-oj-hostdex_intermediates/javalib.jar) host Java: core-libart-hostdex (out/host/common/obj/JAVA_LIBRARIES/core-libart-hostdex_intermediates/classes) Install: out/host/linux-x86/framework/core-oj-hostdex.jar Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Copying: out/host/common/obj/JAVA_LIBRARIES/core-libart-hostdex_intermediates/classes-jarjar.jar Copying: out/host/common/obj/JAVA_LIBRARIES/core-libart-hostdex_intermediates/classes.jar target Dex: core-libart-hostdex Host Jar: core-libart-hostdex (out/host/common/obj/JAVA_LIBRARIES/core-libart-hostdex_intermediates/javalib.jar) Install: out/host/linux-x86/framework/core-libart-hostdex.jar host Java: apachehttp-hostdex (out/host/common/obj/JAVA_LIBRARIES/apachehttp-hostdex_intermediates/classes) host Java: apache-xml-hostdex (out/host/common/obj/JAVA_LIBRARIES/apache-xml-hostdex_intermediates/classes) host Java: hamcrest-hostdex (out/host/common/obj/JAVA_LIBRARIES/hamcrest-hostdex_intermediates/classes) host Java: core-junit-hostdex (out/host/common/obj/JAVA_LIBRARIES/core-junit-hostdex_intermediates/classes) host Java: bouncycastle-hostdex (out/host/common/obj/JAVA_LIBRARIES/bouncycastle-hostdex_intermediates/classes) host Java: wolfssljni-hostdex (out/host/common/obj/JAVA_LIBRARIES/wolfssljni-hostdex_intermediates/classes) host Java: okhttp-hostdex (out/host/common/obj/JAVA_LIBRARIES/okhttp-hostdex_intermediates/classes) Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Copying: out/host/common/obj/JAVA_LIBRARIES/hamcrest-hostdex_intermediates/classes-jarjar.jar Copying: out/host/common/obj/JAVA_LIBRARIES/hamcrest-hostdex_intermediates/classes.jar target Dex: hamcrest-hostdex Copying: out/host/common/obj/JAVA_LIBRARIES/core-junit-hostdex_intermediates/classes-jarjar.jar Copying: out/host/common/obj/JAVA_LIBRARIES/core-junit-hostdex_intermediates/classes.jar target Dex: core-junit-hostdex Host Jar: hamcrest-hostdex (out/host/common/obj/JAVA_LIBRARIES/hamcrest-hostdex_intermediates/javalib.jar) Install: out/host/linux-x86/framework/hamcrest-hostdex.jar Host Jar: core-junit-hostdex (out/host/common/obj/JAVA_LIBRARIES/core-junit-hostdex_intermediates/javalib.jar) Install: out/host/linux-x86/framework/core-junit-hostdex.jar Copying: out/host/common/obj/JAVA_LIBRARIES/wolfssljni-hostdex_intermediates/classes-jarjar.jar Copying: out/host/common/obj/JAVA_LIBRARIES/wolfssljni-hostdex_intermediates/classes.jar target Dex: wolfssljni-hostdex Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/Util.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. JarJar: out/host/common/obj/JAVA_LIBRARIES/okhttp-hostdex_intermediates/classes-jarjar.jar Copying: out/host/common/obj/JAVA_LIBRARIES/okhttp-hostdex_intermediates/classes.jar target Dex: okhttp-hostdex Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Copying: out/host/common/obj/JAVA_LIBRARIES/apachehttp-hostdex_intermediates/classes-jarjar.jar Copying: out/host/common/obj/JAVA_LIBRARIES/apachehttp-hostdex_intermediates/classes.jar target Dex: apachehttp-hostdex Host Jar: wolfssljni-hostdex (out/host/common/obj/JAVA_LIBRARIES/wolfssljni-hostdex_intermediates/javalib.jar) Install: out/host/linux-x86/framework/wolfssljni-hostdex.jar Host Jar: okhttp-hostdex (out/host/common/obj/JAVA_LIBRARIES/okhttp-hostdex_intermediates/javalib.jar) Install: out/host/linux-x86/framework/okhttp-hostdex.jar Host Jar: apachehttp-hostdex (out/host/common/obj/JAVA_LIBRARIES/apachehttp-hostdex_intermediates/javalib.jar) Install: out/host/linux-x86/framework/apachehttp-hostdex.jar Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. JarJar: out/host/common/obj/JAVA_LIBRARIES/bouncycastle-hostdex_intermediates/classes-jarjar.jar Copying: out/host/common/obj/JAVA_LIBRARIES/bouncycastle-hostdex_intermediates/classes.jar target Dex: bouncycastle-hostdex Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Copying: out/host/common/obj/JAVA_LIBRARIES/apache-xml-hostdex_intermediates/classes-jarjar.jar Copying: out/host/common/obj/JAVA_LIBRARIES/apache-xml-hostdex_intermediates/classes.jar target Dex: apache-xml-hostdex Host Jar: bouncycastle-hostdex (out/host/common/obj/JAVA_LIBRARIES/bouncycastle-hostdex_intermediates/javalib.jar) Install: out/host/linux-x86/framework/bouncycastle-hostdex.jar Host Jar: apache-xml-hostdex (out/host/common/obj/JAVA_LIBRARIES/apache-xml-hostdex_intermediates/javalib.jar) Install: out/host/linux-x86/framework/apache-xml-hostdex.jar >>> art_standalone: Entering fakeroot... ============================================ PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=6.0.1 TARGET_PRODUCT=full TARGET_BUILD_VARIANT=eng TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= TARGET_ARCH=arm TARGET_ARCH_VARIANT=armv7 TARGET_CPU_VARIANT=generic TARGET_2ND_ARCH= TARGET_2ND_ARCH_VARIANT= TARGET_2ND_CPU_VARIANT= HOST_ARCH=arm HOST_OS=linux HOST_OS_EXTRA=Linux-6.1.34-1-lts-armv8l-with HOST_BUILD_TYPE=release BUILD_ID=MOB30M OUT_DIR=out ============================================ including ./art/adbconnection/Android.mk ... including ./art/benchmark/Android.mk ... including ./art/build/Android.mk ... including ./art/cmdline/Android.mk ... including ./art/compiler/Android.mk ... including ./art/dalvikvm/Android.mk ... including ./art/dex2oat/Android.mk ... including ./art/dexdump/Android.mk ... including ./art/dexlayout/Android.mk ... including ./art/dexlist/Android.mk ... including ./art/dexoptanalyzer/Android.mk ... including ./art/disassembler/Android.mk ... including ./art/dt_fd_forward/Android.mk ... including ./art/imgdiag/Android.mk ... including ./art/libartbase/Android.mk ... including ./art/libartpalette/Android.mk ... including ./art/libdexfile/Android.mk ... including ./art/libelffile/Android.mk ... including ./art/libprofile/Android.mk ... including ./art/oatdump/Android.mk ... including ./art/openjdkjvm/Android.mk ... including ./art/openjdkjvmti/Android.mk ... including ./art/profman/Android.mk ... including ./art/runtime/Android.mk ... including ./art/sigchainlib/Android.mk ... including ./art/simulator/Android.mk ... including ./art/tools/Android.mk ... including ./build/libs/host/Android.mk ... including ./build/target/board/Android.mk ... including ./build/target/product/security/Android.mk ... including ./build/tools/Android.mk ... including ./dalvik/Android.mk ... including ./external/apache-http/Android.mk ... including ./external/apache-xml/Android.mk ... including ./external/bouncycastle/Android.mk ... including ./external/fdlibm/Android.mk ... including ./external/hamcrest/Android.mk ... including ./external/icu/Android.mk ... including ./external/junit/Android.mk ... including ./external/libunwind/Android.mk ... including ./external/okhttp/Android.mk ... including ./external/safe-iop/Android.mk ... including ./external/wolfssljni/Android.mk ... including ./libandroidfw/Android.mk ... including ./libbase/Android.mk ... including ./libcore/Android.mk ... find: external/doclava/res/assets/templates-sdk: No such file or directory including ./libnativehelper/Android.mk ... including ./prebuilts/misc/common/jarjar/Android.mk ... including ./system/core/Android.mk ... install -Dt /home/buildozer/aports/testing/art_standalone/pkg/art_standalone/usr/lib/java/dex/art/natives/ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libjavacore.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libnativehelper.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libopenjdk.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libopenjdkjvm.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libwolfssljni.so install -Dt /home/buildozer/aports/testing/art_standalone/pkg/art_standalone/usr/lib/art/ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libandroidfw.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libart.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libart-compiler.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libart-dexlayout.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libartbase.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libartpalette.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libbacktrace.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libbase.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libcutils.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libdexfile.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/liblog.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libnativebridge.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libprofile.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libsigchain.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libunwind.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libutils.so \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/lib64/libziparchive.so test -f /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/bin/dalvikvm && install -Dt /home/buildozer/aports/testing/art_standalone/pkg/art_standalone/usr/bin /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/bin/dalvikvm || true test -f /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/bin/dalvikvm64 && install -Dt /home/buildozer/aports/testing/art_standalone/pkg/art_standalone/usr/bin /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/bin/dalvikvm64 || true install -Dt /home/buildozer/aports/testing/art_standalone/pkg/art_standalone/usr/bin /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/bin/dex2oat install -Dt /home/buildozer/aports/testing/art_standalone/pkg/art_standalone/usr/bin /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/bin/dx install -Dt /home/buildozer/aports/testing/art_standalone/pkg/art_standalone/usr/lib/java/dex/art/ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/framework/apachehttp-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/framework/apache-xml-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/framework/bouncycastle-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/framework/core-junit-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/framework/core-libart-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/framework/core-oj-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/framework/hamcrest-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/framework/okhttp-hostdex.jar \ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/framework/wolfssljni-hostdex.jar install -D /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/common/obj/JAVA_LIBRARIES/core-all-hostdex_intermediates/classes.jar /home/buildozer/aports/testing/art_standalone/pkg/art_standalone/usr/lib/java/core-all_classes.jar install -Dt /home/buildozer/aports/testing/art_standalone/pkg/art_standalone/usr/lib/java/ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//out/host/linux-x86/framework/dx.jar install -Dt /home/buildozer/aports/testing/art_standalone/pkg/art_standalone/etc/ssl/certs/java/ /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//prebuilts/cacerts.bks install -Dt /home/buildozer/aports/testing/art_standalone/pkg/art_standalone/usr/include/androidfw /home/buildozer/aports/testing/art_standalone/src/art_standalone-672e299f85cf91901ba107d90084fd67865f047a//libandroidfw/include/androidfw/androidfw_c_api.h >>> art_standalone-dev*: Running split function dev... >>> art_standalone-dev*: Preparing subpackage art_standalone-dev... >>> art_standalone-dev*: Running postcheck for art_standalone-dev >>> art_standalone-dbg*: Running split function dbg... >>> art_standalone-dbg*: Preparing subpackage art_standalone-dbg... >>> art_standalone-dbg*: Running postcheck for art_standalone-dbg >>> art_standalone*: Running postcheck for art_standalone >>> art_standalone*: Preparing package art_standalone... >>> art_standalone-dbg*: Scanning shared objects >>> art_standalone-dev*: Scanning shared objects >>> art_standalone*: Scanning shared objects >>> art_standalone-dbg*: Tracing dependencies... >>> art_standalone-dbg*: Package size: 332.9 MB >>> art_standalone-dbg*: Compressing data... >>> art_standalone-dbg*: Create checksum... >>> art_standalone-dbg*: Create art_standalone-dbg-0_git20240220-r1.apk >>> art_standalone-dev*: Tracing dependencies... >>> art_standalone-dev*: Package size: 9.3 MB >>> art_standalone-dev*: Compressing data... >>> art_standalone-dev*: Create checksum... >>> art_standalone-dev*: Create art_standalone-dev-0_git20240220-r1.apk >>> art_standalone*: Tracing dependencies... >>> ERROR: art_standalone*: libart-compiler.so: path not found wolfssl-jni so:libbsd.so.0 so:libc.musl-armv7.so.1 so:libcrypto.so.3 so:libdl_bio.so.0 so:libexpat.so.1 so:libgcc_s.so.1 so:libicui18n.so.74 so:libicuuc.so.74 so:liblz4.so.1 so:liblzma.so.5 so:libstdc++.so.6 so:libvixl.so.5 so:libwolfssl.so.42 so:libz.so.1 >>> art_standalone*: Package size: 22.8 MB >>> art_standalone*: Compressing data... >>> art_standalone*: Create checksum... >>> art_standalone*: Create art_standalone-0_git20240220-r1.apk >>> art_standalone: Build complete at Tue, 02 Apr 2024 00:08:33 +0000 elapsed time 0h 41m 30s >>> art_standalone: Cleaning up srcdir >>> art_standalone: Cleaning up pkgdir >>> art_standalone: Uninstalling dependencies... (1/97) Purging .makedepends-art_standalone (20240401.232704) (2/97) Purging bash (5.2.26-r0) Executing bash-5.2.26-r0.pre-deinstall (3/97) Purging vixl-dev (7.0.0-r0) (4/97) Purging vixl (7.0.0-r0) (5/97) Purging bionic_translation-dev (0_git20240202-r0) (6/97) Purging bionic_translation (0_git20240202-r0) (7/97) Purging expat-dev (2.6.2-r0) (8/97) Purging expat (2.6.2-r0) (9/97) Purging icu-dev (74.2-r0) (10/97) Purging libbsd-dev (0.12.2-r0) (11/97) Purging bsd-compat-headers (0.7.2-r6) (12/97) Purging libmd-dev (1.1.0-r0) (13/97) Purging libcap-dev (2.69-r1) (14/97) Purging linux-headers (6.6-r0) (15/97) Purging libunwind-dev (1.8.1-r0) (16/97) Purging libucontext-dev (1.2-r3) (17/97) Purging libucontext (1.2-r3) (18/97) Purging libunwind (1.8.1-r0) (19/97) Purging lz4-dev (1.9.4-r5) (20/97) Purging meson-pyc (1.4.0-r0) (21/97) Purging meson (1.4.0-r0) (22/97) Purging samurai (1.2-r5) (23/97) Purging openjdk8-jdk (8.402.06-r0) (24/97) Purging openssl-dev (3.2.1-r1) (25/97) Purging valgrind-dev (3.22.0-r1) (26/97) Purging wolfssl-jni-dev (5.7.0-r0) (27/97) Purging wolfssl-jni (5.7.0-r0) (28/97) Purging xz-dev (5.6.1-r2) (29/97) Purging xz (5.6.1-r2) (30/97) Purging zip (3.0-r12) (31/97) Purging unzip (6.0-r14) (32/97) Purging zlib-dev (1.3.1-r0) (33/97) Purging icu (74.2-r0) (34/97) Purging icu-libs (74.2-r0) (35/97) Purging libintl (0.22.5-r0) (36/97) Purging mesa-egl (24.0.3-r0) (37/97) Purging mesa-gbm (24.0.3-r0) (38/97) Purging mesa (24.0.3-r0) (39/97) Purging mesa-glapi (24.0.3-r0) (40/97) Purging openjdk8-jre (8.402.06-r0) (41/97) Purging font-dejavu (2.37-r5) (42/97) Purging fontconfig (2.15.0-r0) (43/97) Purging encodings (1.0.7-r1) (44/97) Purging mkfontscale (1.2.2-r5) (45/97) Purging openjdk8-jre-base (8.402.06-r0) (46/97) Purging openjdk8-jre-lib (8.402.06-r0) (47/97) Purging java-common (0.5-r0) (48/97) Purging java-cacerts (1.0-r1) Executing java-cacerts-1.0-r1.post-deinstall (49/97) Purging p11-kit-trust (0.25.3-r0) (50/97) Purging nss (3.99-r0) (51/97) Purging p11-kit (0.25.3-r0) (52/97) Purging pcsc-lite-libs (2.0.1-r0) (53/97) Purging python3-pyc (3.11.8-r0) (54/97) Purging python3-pycache-pyc0 (3.11.8-r0) (55/97) Purging pyc (3.11.8-r0) (56/97) Purging wayland-libs-client (1.22.0-r4) (57/97) Purging wayland-libs-server (1.22.0-r4) (58/97) Purging alsa-lib (1.2.11-r0) (59/97) Purging freetype (2.13.2-r0) (60/97) Purging python3 (3.11.8-r0) (61/97) Purging gdbm (1.23-r1) (62/97) Purging giflib (5.2.2-r0) (63/97) Purging libdrm (2.4.120-r0) (64/97) Purging libpciaccess (0.18.1-r0) (65/97) Purging hwdata-pci (0.380-r0) (66/97) Purging icu-data-en (74.2-r0) (67/97) Purging krb5-libs (1.21.2-r0) (68/97) Purging krb5-conf (1.0-r2) (69/97) Purging keyutils-libs (1.6.3-r3) (70/97) Purging lcms2 (2.16-r0) (71/97) Purging libxi (1.8.1-r3) (72/97) Purging libxtst (1.2.4-r5) (73/97) Purging libxext (1.3.6-r1) (74/97) Purging libxrender (0.9.11-r4) (75/97) Purging libxcomposite (0.4.6-r4) (76/97) Purging libx11 (1.8.7-r0) (77/97) Purging libxcb (1.16.1-r0) (78/97) Purging libxdmcp (1.1.5-r0) (79/97) Purging libbsd (0.12.2-r0) (80/97) Purging libbz2 (1.0.8-r6) (81/97) Purging libcom_err (1.47.0-r5) (82/97) Purging libffi (3.4.6-r0) (83/97) Purging libfontenc (1.1.7-r4) (84/97) Purging libjpeg-turbo (3.0.2-r0) (85/97) Purging liblksctp (1.0.19-r5) (86/97) Purging libmd (1.1.0-r0) (87/97) Purging libpanelw (6.4_p20240309-r0) (88/97) Purging libpng (1.6.43-r0) (89/97) Purging libtasn1 (4.19.0-r2) (90/97) Purging libverto (0.3.2-r2) (91/97) Purging libxau (1.0.11-r3) (92/97) Purging libxshmfence (1.3.2-r5) (93/97) Purging mpdecimal (4.0.0-r0) (94/97) Purging nspr (4.35-r4) (95/97) Purging readline (8.2.10-r0) (96/97) Purging sqlite-libs (3.45.2-r0) (97/97) Purging xz-libs (5.6.1-r2) Executing busybox-1.36.1-r24.trigger Executing ca-certificates-20240226-r0.trigger OK: 270 MiB in 103 packages >>> art_standalone: Updating the testing/armv7 repository index... >>> art_standalone: Signing the index...